[Laszlo-dev] [JIRA] Updated: (LPP-7737) IE "Click Sounds" problem when loading
P T Withington
ptw at laszlosystems.com
Fri Mar 6 07:59:17 PST 2009
I am re-spinning 4.2.0.2 with this change in.
On 2009-03-06, at 10:22EST, Max Carlson (JIRA) wrote:
>
> [ http://www.openlaszlo.org/jira/browse/LPP-7737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> Max Carlson updated LPP-7737:
> -----------------------------
>
> Status: Resolved (was: In Review)
> Fixed in Change#: 13201
> Resolution: Fixed
>
> r13201 | max | 2009-03-06 07:20:45 -0800 (Fri, 06 Mar 2009) | 24 lines
> Changed paths:
> M /openlaszlo/branches/4.2
> M /openlaszlo/branches/4.2/WEB-INF/lps/lfc/kernel/swf9/
> LzPreloader.as
> M /openlaszlo/branches/4.2/WEB-INF/lps/lfc/lzpreloader.as
> M /openlaszlo/branches/4.2/WEB-INF/lps/server/src/org/openlaszlo/
> compiler/SWF9Writer.java
>
> Merged revisions 13200 via svnmerge from
> http://svn.openlaszlo.org/openlaszlo/trunk
>
> ........
> r13200 | max | 2009-03-06 07:17:33 -0800 (Fri, 06 Mar 2009) | 18
> lines
>
> Change 20090305-maxcarlson-l by maxcarlson at Bank.local on 2009-03-05
> 20:10:53 PST
> in /Users/maxcarlson/openlaszlo/trunk-clean
> for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Fix load progress updates for swf 8 and 9 to not cause
> 'clicking' in IE
>
> Bugs Fixed: LPP-7737 - IE "Click Sounds" problem when loading
>
> Technical Reviewer: promanik
> QA Reviewer: mohammad at zeineddin.name
>
> Details: LzPreloader, lzpreloader - Update to use ExternalInterface
> calls instead of loading URLs.
>
> SWF9Writer - Update to include code from LzPreloader.
>
> Tests: Modified WEB-INF/lps/templates/html-
> response.xslt#onloadstatus() method to show load progress
> information, to verify updates are being sent for swf8/9. Used
> fiddler proxy under windows with 'simulate modem speed' script to
> verify there is no more clicking in IE even for slow downloads.
> ........
>
>> IE "Click Sounds" problem when loading
>> --------------------------------------
>>
>> Key: LPP-7737
>> URL: http://www.openlaszlo.org/jira/browse/LPP-7737
>> Project: OpenLaszlo
>> Issue Type: Bug
>> Components: Browser Integration
>> Affects Versions: 4.2.0.1
>> Environment: * OpenLaszlo 4.2.0.1 build branches/4.2 at 12788
>> (12788)
>> * runtime target swf9
>> * browser IE7 on windows XP
>> Reporter: Mohammad ZeinEddin
>> Assignee: Max Carlson
>> Priority: P0
>> Fix For: 4.2.0.2
>>
>>
>> while the laszlo application is being loaded in IE, a clicks sound
>> is heard, and after tracing the problem using a script debugger
>> line by line, I found where the issue exactly appears;
>> 1- In the javascript library (embed-compressed.js) there is a
>> function that sends the percentage loaded so far of the embeded
>> flash object:
>> _sendPercLoad : function($1) {
>> if (this.onloadstatus && typeof this.onloadstatus ==
>> "function") {
>> this.onloadstatus($1);
>> }
>> },
>> which is being called by a javascript code that is dynamically
>> generated at run time. This code snippet which calls this function
>> is hard-coded in the source code of the lps server.
>> 2- Upon the completion of this function call, "void(0);" is being
>> called, and after that exactly the click sound appears.
>> "if (window.lz && lz.embed && lz.embed.applications &&
>> lz.embed.applications.lzapp)
>> lz.embed.applications.lzapp._sendPercLoad(10);void(0);"
>> 3- I'm not exactly sure that the problem is in "void(0);", but its
>> a very possible candidate. Another possible thing that I noticed
>> while i'm trying this, is that the "4- I'm not exactly sure that
>> the problem is in "void(0);", but its a very possible candidate.
>> Another possible thing that I noticed while i'm trying this, is
>> that the "onbeforeunload" event is being triggered each time this
>> function is called, and it is a more possible that this what is
>> causing the click sounds." event is being triggered each time this
>> function is called, and it is a more possible that this what is
>> causing the click sounds. I know as in a bug before that
>> "document.write" in IE fires "onbeforeunload", but in the previous
>> OpenLaszlo servers we have not seen this issues!!! it is too
>> annoying issue especially for big applications because those sounds
>> is heard many many times.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the
> administrators: http://www.openlaszlo.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
More information about the Laszlo-dev
mailing list