On 19 Nov 2005 at 20:11, Max Carlson wrote:

> Hi There,
>
> I just updated an old windows 2000 box to 5.00.2195 service pack 4 and
> IE 6.2800.1106.  I am running the latest version of the Flash player
> (8.0.22) from:
> http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash
>
> The very first application I looked at didn't download - because the
> player updated.  When I hit reload, it worked.  Every Laszlo application
> works now.  I was testing the URL
> http://www.openlaszlo.org/lps-latest/demos/weather/weather.html
>
> Perhaps there's something else going on?  Where did you get Flash 8.5?
>
> Regards,
> Max Carlson
> OpenLaszlo
_________________________________________________

Max

We appear to be in a minority of two here .. so I guess it is our call for some more detailed diagnosis to prove the theory ...

_____________

Summary of findings set out below: 

object part of embed script (generated by embed.js) is not written in var = o;  thus SWF does not render correctly in IE (which uses <object script>), but SWF does render in Firefox (which uses <embed script>).

Flashobject.js works reliably as an alternative to embed.js.

Perhaps later versions of IE 6 do not require the object part of embed script in body?

_____________

Detailed diagnosis.

I do not believe that this quirk is only related to Flash 8 since I experienced the same symptoms much earlier with Flash 7 (see laszlo-dev thread).

I have just installed openlaszlo-3.2(alpha).war to create a brand new webapp - openlaszlo-3.2 .. running in Tomcat server in c:\tomcat5\.

And when launching openlaszlo-3.2/my-apps/copy-of-hello.lzx .. there is a blank screen as reported by rabbit69 and myself.

_____________

I then tried the same app as Max ..

http://localhost:8080/openlaszlo-3.2/demos/weather/weather.html

and there was no swf displayed.

_____________

Same blank swf rendering results with the openlaszlo site

http://www.openlaszlo.org/lps-latest/demos/weather/weather.html

and also here ..

http://www.openlaszlo.org/lps-latest/my-apps/copy-of-hello.lzx

______________

This is in Win XP Pro - IE 6.0.2800.1106.xpsp2.030422-1633

______________

However, running the same weather.html app in Firefox 1.0.6,  does render correctly here ...

http://localhost:8080/openlaszlo-3.2/demos/weather/weather.html

and here ...

http://www.openlaszlo.org/lps-latest/demos/weather/weather.html

and here ...

http://www.openlaszlo.org/lps-latest/my-apps/copy-of-hello.lzx

_____________

The reported non rendering of SWF problem seems to be evident only in older Internet Explorer (not Firefox) so I focused on troubleshooting the IE browser.

First I started by clearing the cache in Internet Explorer.

I used SWF Cache Viewer to clear cache and inspect SWF files in browser caches.

SWF Cache Viewer can be obtained (free) from here ..

http://www.browsertools.net/Flash-Saving-Plugin/index.html

Then, after launching the copy-of-hello.lzx, again viewed the Internet Explorer cache .. using SWF cache viewer.

The cache contained just two files.

dev-console.lzx
h

dev-console.lzx.swf can be seen in the browser.
only Hello Laszlo! swf is not rendered.

_____________

Next I tried SOLO deployment in dev-console.

The wizard page opened

http://localhost:8080/openlaszlo-3.2/lps/admin/solo- deploy.jsp?appurl=%2Fmy%2Dapps%2Fcopy%2Dof%2Dhello%2Elzx

and in my-apps folder there was now a compiled copy-of-hello.swf which could be clicked on and viewed correctly in the Macromedia Flash Player 8.

but in the Internet Explorer Cache there were still only two files

dev-console.lzx
h

_____________

After viewing the SOLO copy-of-hello.lzx.html the Hello Laszlo! was rendered correctly and the swf could be seen in Internet Explorer cache.

_____________

Conclusion:

This failure to render occurs when launching the openlaszlo lzx apps in server, not in SOLO deployment. 

The failure occurs with IE browser, not Firefox.

The copy-of-hello.lzx.swf does not appear in browser cache.

_____________

Troubleshooting embed.js

Tested copy-of-hello.lzx again, this time uncommenting the alerts  in embed.js ..

Here follows the outputs (embed scripts are summarised) ..


[alert message 1]
5871

[alert message 2]
win: true, ns false, safari false

[alert message 3]
embed script for src="">

[alert message 4]
/openlaszlo-3.2, /openlaszlo-3.2

[alert message 5]
win: true, ns false, safari false

[alert message 6]
embed script for src="">

_____________

Next experiment was to take the embed script (generated as object "o" by embed.js) and place this script manually into body of a new HTML page ....

<html>
<head>
<title></title>
</head>
<body>

<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
scale="noscale"
src="">
quality="high"
salign="lt"
menu="true"
width="100%"
height="100%"
bgcolor="#ffffff"
name="lzapp"
id="lzapp"
Flashvars="lzt=swf&
__lzhistconn=9883&
__lzhisturl=/openlaszlo_3.2/lps/includes/h.html%3Fh%3D"/>
<div style="position:absolute;left:0px;top:0px;display:none">
<object classid="">
codebase="">
width="1"
height="1">
<param name="movie"
value="/openlaszlo-3.2/lps/includes/h.swf">
</object>
</div>

</body>
</html>

_____________

This is  incorrect and does not render in IE.

The embed part of script is correct (which explains why it can be rendered in Firefox which uses embed).

But IE Explorer expects the object part of the script.

The only object part of the script refers to h.swf.

______________

Testing with flashobject - an alternative to embed.js

Next experiment was to abandon embed.js and switch to using flashobject.js (which works reliably).  This renders copy-of-hello.lzx correctly.

flashobject.js can be placed anywhere so I placed it in lps/includes (same location as embed.js).

Note how easily vars can be added to flashobject script in body.  And alternative content can be added in div for those without Flash plugin installed.

Here is the full HTML content ...

<html>
<head>
<title></title>
</head>
<body>

<div id="flashcontent">
This is replaced by the Flash content.
Place your alternative content here and users without the Flash plugin or with _javascript_ turned off will see this.
Content here allows you to leave out <code>noscript</code>
tags. Include a link to <a href="" the detection</a> if you wish.
</div>

<script type="text/_javascript_">
// <![CDATA[
                        
var fo = new FlashObject("copy-of-hello.lzx?lzt=swf", "lzapp", "100%", "100%", "7", "#ffffff");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("salign", "LT");
fo.addParam("menu", "true");
fo.addParam("bgcolor", "#ffffff");
fo.addParam("swLiveConnect", "true")   
fo.addParam("name", "lzapp")
fo.write("flashcontent");
                        
// ]]>
</script>

</body>
</html>

______________

More on flashobject.js here ..

http://blog.deconcept.com

http://blog.deconcept.com/flashobject/

______________


DL
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to