// default set of runtimes var runtimes = ['dhtml', 'swf8', 'swf9', 'swf10']; // server can tell us if only some are available var runtimes_arg = lz.Browser.getInitArg('runtimes'); if (runtimes_arg != null) { runtimes = runtimes_arg.split(","); } for (var r in runtimes) { if (runtimes[r] == 'dhtml') canvas.setAttribute('runtime_dhtml_enabled', true); if (runtimes[r] == 'swf8') canvas.setAttribute('runtime_swf8_enabled', true); if (runtimes[r] == 'swf9') canvas.setAttribute('runtime_swf9_enabled', true); if (runtimes[r] == 'swf10') canvas.setAttribute('runtime_swf10_enabled', true); } cb_debug.setValue(true); canvas.reloadApp(); setAttribute('app_lzt', 'source'); canvas.reloadApp(); setAttribute('app_lzt', 'deployment'); canvas.reloadApp(); var url = app_lps_root + "/index.html"; this.loadURL(url); var url = "http://www.openlaszlo.org/community"; this.loadURL(url); var url = "http://forum.openlaszlo.org/"; this.loadURL(url); lz.Browser.loadURL(url, target); Compile Options: swf8 swf10 HTML5 Debug Backtrace Proxied Use master sprite if (cb_backtrace.value) { cb_debug.setAttribute('value', true); } if (cb_debug.value == false) { cb_backtrace.setAttribute('value', false); } Deploy: Documentation Developer Community Developer Forums Console Remote Debug canvas.remoteEval(expr2.getText()); work? this.output.addText(str.split('\n').join(' \n')); sbar.page(sbar.scrollmax); ]]> canvas.displayObjectByID(oid); // reload the page with the .lzx path var p = app_fullpath.substring(0,app_fullpath.length -4)+".lzx"; setAttribute('app_fullpath', p); this.reloadApp(); 0) { lzoptval += ","; } lzoptval += opt+"("+ lzoptions[opt] + ")"; seen[opt] = true; } qitems['lzoptions'] = lzoptval //Debug.write( 'qitems', qitems); // Copy values to LzParam object seen = {}; for ( var key in qitems) { // work aorund bugs in Safari if (key == '') continue; if (key.indexOf('#38;') != -1) { var i = key.indexOf('#38;'); key = key.substring(i + 4, key.length); } if (seen[key]) continue; //alert('params ' + key + ' ' + qitems[key]); params.setValue(key, qitems[key]); seen[key] = true; } //alert('params ' + params.toString()); var url = app_fullpath+"?"+params.serialize("=", "&", true); //Debug.write('this.loadURL("'+url+'")'); this.loadURL(url); ]]> "); ]]> Connection is already open to app.
'); } ]]>