I have been experiencing a bug which seems to be rare (although mentioned in earlier
posts).
Put simply, compiled swf movies will not render in my IE browser, but render fine in
Firefox 1.5.
Hoping that this bug might disappear with openlaszlo-3.2, unfortunately it is still there,
and even mentioned in the release notes (advice - revert to embed.js release 3.0.2).
So I've investigated further and troubleshooting post is here ..
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&postid=18865#post18865
The problematic code is posted in that thread (and below).
...
My question is - where/how is that HTML wrapper code with two divs for main movie
and dev console movie actually generated in openlaszlo-3.2?
...
I would like to amend it (for my purposes) to use flashobject.js.
Below is the edited/hacked version of the main + dev console wrapper code which now
works in my IE browser.
DL
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<link rel="SHORTCUT ICON" href="">
<link rel="stylesheet" href=""
type="text/css">
<title>OpenLaszlo Application</title>
<style
type="text/css">
img {border: 0}
</style>
<script language="_javascript_1.1" src=""
type="text/_javascript_"></script>
<script src="" type="text/_javascript_"></script>
<script src="" type="text/_javascript_"></script>
</head>
<body style="margin: 0">
<!-- this commented out div code causes IE browser to render blank - needs to be investigated
-->
<!--
<div style="background-color: #ffffff"><script
type="text/_javascript_">
lzLPSRoot = '/openlaszlo-3.2';
lzCanvasRuntimeVersion = 8 * 1;
if (lzCanvasRuntimeVersion == 6) {
lzCanvasRuntimeVersion =
6.65;
}
if (isIE && isWin || detectFlash()
>= lzCanvasRuntimeVersion) {
lzEmbed({url: 'copy-of-hello.lzx?lzt=swf&debug=false&lzr=swf8&__lzhistconn='+top.connuid+'&__lzhisturl='
+ escape('/openlaszlo-3.2/lps/includes/h.html?h='), bgcolor: '#ffffff', width: '100%', height: '100%', id: 'lzapp', accessible: 'false'}, lzCanvasRuntimeVersion);
lzHistEmbed(lzLPSRoot);
} else {
document.write('This application
requires Flash player ' + lzCanvasRuntimeVersion + '. <a href="" target="fpupgrade">Click here</a>
to upgrade.');
}
</script><noscript>
Please enable _javascript_
in order to use this application.
</noscript>
</div>
-->
<!-- replaced above code with flashobject compliant code -->
<div id="flashcontent">
</div>
<script type="text/_javascript_">
//
<![CDATA[
var
fo = new FlashObject("copy-of-hello.lzx?lzt=swf", "lzapp", "100%", "100%", "7", "#FFFFFF");
fo.addVariable("__lzhistconn",
"\""+top.connuid+"\""); // escape quotes
fo.addVariable("__lzhisturl",
"\""+escape('/openlaszlo-3.2/lps/includes/h.html?h=')+"\""); // escape quotes
fo.write("flashcontent");
//
]]>
</script>
<!-- this div code below left unedited since it renders the dev console o.k. -->
<div id="footer"><script type="text/_javascript_">
lzEmbed({url: '/openlaszlo-3.2/lps/admin/dev-console.lzx.swf?lzappuid=copy-of-hello.lzx&lzt=swf&appinfo=%3Cdata%3E%3Crequest+lps%3D%22%2Fopenlaszlo-3.2%22+url%3D%22copy-of-hello.lzx%22+relurl%3D%22my-apps%2Fcopy-of-hello.lzx%22+fullpath%3D%22%2Fopenlaszlo-3.2%2Fmy-apps%2Fcopy-of-hello.lzx%22+opt-url%3D%22copy-of-hello.lzo%22+unopt-url%3D%22copy-of-hello.lzx%22+query_args%3D%22%26amp%3Bdebug%3Dfalse%26amp%3Blzr%3Dswf8%22+pocketpc%3D%22false%22+console-remote-debug%3D%22null%22+console-floating-
window%3D%22null%22+appuid%3D%2211439818207
</script></div>
<div class="info"><b>Runtime Target: </b>swf8<br><b>Application
Size: </b>72K
(73,658 bytes)
<a target="_blank" href=""
profile</a></div>
</body>
</html>
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
