[Laszlo-dev] Re: Laszlo-dev Digest, Vol 14, Issue 37

Luiz Henrique Moraes lhmoraes at gmail.com
Mon Nov 21 03:07:16 PST 2005


On 11/20/05, laszlo-dev-request at openlaszlo.org
<laszlo-dev-request at openlaszlo.org> wrote:
> Send Laszlo-dev mailing list submissions to
>         laszlo-dev at openlaszlo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> or, via email, send a message with subject or body 'help' to
>         laszlo-dev-request at openlaszlo.org
>
> You can reach the person managing the list at
>         laszlo-dev-owner at openlaszlo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Laszlo-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: [Laszlo-user] why flash in 3.1 not showed! (Max Carlson)
>    2. Re: [Laszlo-user] why flash in 3.1 not showed! (DL)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 19 Nov 2005 20:11:57 -0800
> From: Max Carlson <max at laszlosystems.com>
> Subject: [Laszlo-dev] Re: [Laszlo-user] why flash in 3.1 not showed!
> To: dl.lists at ntlworld.com, rabbit69 <rabbit69 at 126.com>
> Cc: laszlo-user at openlaszlo.org, laszlo-dev at openlaszlo.org
> Message-ID: <437FF78D.8000805 at laszlosystems.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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
>
> DL wrote:
> > On 19 Nov 2005 at 10:40, rabbit69 wrote:
> >
> >>  Great! thank you very very much! your experience helped me out! I
> >>  think this due to the version of embed.js, i copyed the this file from
> >>  openlaszlo3.0, and overwrited the file in 3.2alpha, and the flash
> >>  files in laszlo-explorer and development docs can show rightly(the
> >>  former letter i meaned this problem)!
> >>
> >>  my domestic pc configuration is:
> >>  OS: win2000 5.00.2195 service pack4 IE:6.0.2800.1106 flashplayer: 8.5
> >>
> >>  my work pc configuration use WINXP, and IE6 ,flashplayer8.0, I guess
> >>  this method would make the same effect! I will have a test while back
> >>  to work in Monday!
> >
> > __________________________________________________________
> >
> > On 18 Nov 2005 at 11:19, Max Carlson wrote:
> >
> >>  I can't reproduce the problem, but I'm running a fairly recent version
> >>  of IE 6 - 6.0.2900.2180.xpsp.050301-1521, update version SP2.  It would
> >>  be helpful to have some support from QA testing on an old XP box.  I'll
> >>  continue seeing if I can break it.
> >>
> >>  Can you send me the version numbers of IE 6, Flash, Windows and confirm
> >>  you're using the latest version of OpenLaszlo 3.1.
> >>
> >>  So far, I've uninstalled the flash player and tested that it upgrades to
> >>  flash 8 correctly.  It does, although it requires a page refresh once
> >>  Flash is installed to see anything.
> >>
> >
> > __________________________________________________________
> >
> > This confirms my diagnosis - since I had exactly the same experience
> > testing OpenLaszlo-3.1(beta) with my older version WinXP IE 6.0.2800.
> >
> > OpenLaszlo 3.1 version of embed.js (which has been tested with IE
> > 6.0.2900) needs to be tested further with earlier versions of IE browser
> > .. in particular IE 6.0.2800. This is the common denominator between
> > rabbit69 configuration and my configuration.
> >
> > I can QA on my IE 6.0.2800 browser if Max explains what to test in
> > embed.js and report back.
> >
> > ........
> >
> > These symptoms were reported earlier here
> >
> > http://www.openlaszlo.org/pipermail/laszlo-dev/2005-September/thread.html
> >
> > See two threads
> >
> > (a) 5th from top of archives page ...
> >
> > "Hello Laszlo!" text not visible in canvas in nightly build (3.1)       DL
> >
> > (b) 5th from bottom of archives page ...
> >
> > embed.js puzzle - latest nightly build openlaszlo-3.1      DL
> >
> >
> > DL
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Laszlo-user mailing list
> > Laszlo-user at openlaszlo.org
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 20 Nov 2005 15:07:47 -0000
> From: "DL" <dl.lists at ntlworld.com>
> Subject: [Laszlo-dev] Re: [Laszlo-user] why flash in 3.1 not showed!
> To: Max Carlson <max at laszlosystems.com>, laszlo-dev at openlaszlo.org,
>         laszlo-user at openlaszlo.org
> Message-ID: <43809143.16037.12C37D3 at dl.lists.ntlworld.com>
> Content-Type: text/plain; charset="us-ascii"
>
> 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="copy-of-hello.lzx?lzt=swf"
>
> [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="/openlaszlo-3.2/lps/admin/dev-console.lzx.swf?lzt=swf"
>
> _____________
>
> 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="copy-of-hello.lzx?lzt=swf"
> 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="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
> version=7,0,0,0"
> 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="flashobject.html?detectflash=false">bypass 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
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://openlaszlo.org/pipermail/laszlo-dev/attachments/20051120/d16dbde0/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
> End of Laszlo-dev Digest, Vol 14, Issue 37
> ******************************************
>


--

Abraços,
Henrique



More information about the Laszlo-dev mailing list