Author: max
Date: 2007-10-24 13:36:16 -0700 (Wed, 24 Oct 2007)
New Revision: 6998
Modified:
openlaszlo/trunk/lps/includes/source/embednew.js
Log:
Change 20071024-maxcarlson-4 by [EMAIL PROTECTED] on 2007-10-24 13:11:52 PDT
in /Users/maxcarlson/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Add support to embednew.js for LFCdhtml-{debug,backtrace}-simple.js
New Features:
Bugs Fixed: LPP-4607 'Add dhtml debug-simple-lfc.js for browsers that can't
handle the regular debugger'
Technical Reviewer: ptw
QA Reviewer: promanik
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details: Detect IE < 6 and Safari < 3 for 'debug' and 'backtrace' versions of
the LFC, and switch the filename to be *-simple.
Tests: Run
http://localhost:8080/trunk/my-apps/copy-of-hello.lzx?lzr=dhtml&debug=true runs
in Safari 2 and IE 6.
Modified: openlaszlo/trunk/lps/includes/source/embednew.js
===================================================================
--- openlaszlo/trunk/lps/includes/source/embednew.js 2007-10-24 20:34:48 UTC
(rev 6997)
+++ openlaszlo/trunk/lps/includes/source/embednew.js 2007-10-24 20:36:16 UTC
(rev 6998)
@@ -160,6 +160,14 @@
var scripturl = lzOptions.ServerRoot+ '/lps/includes/excanvas.js';
this.__dhtmlLoadScript(scripturl)
}
+ if ((Lz.__BrowserDetect.isIE && Lz.__BrowserDetect.version < 7) ||
(Lz.__BrowserDetect.isSafari && Lz.__BrowserDetect.version <= 419.3)) {
+ // use the 'simple' version of the LFC:
LFCdhtml-{debug,backtrace}-simple.js for Safari 2 and IE 6
+ var i = url.indexOf('debug.js') || url.indexOf('backtrace.js')
+ if (i != -1) {
+ var type = url.substring(i, url.length - 3);
+ url = url.substring(0, i) + type + '-simple.js';
+ }
+ }
this.__dhtmlLoadScript(url)
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins