/    Sign up×
Community /Pin to ProfileBookmark

JS problem in Firefox

Hi…
Can anyone help me with a strange problem?
I did a site for a friend and there was some js involved.
He noticed yesterday that in Firefox the browser had the “Transffering from…” message in the status bar even after the page has loaded. After a while it switches to a Waiting for message… which eventually goes away after a while. Also the Stop button is disabled and I know for sure that all the content is loaded.
So i started digging in the code, as he said the server logs don’t give any info and the problem must be client-side.
What I noticed was that the preload function, called by the onLoad event of the body tag was causing this in some way. Removing the call to the function or leaving the function empty makes the browser display Done in the status bar as soon as the content is loaded.
The js was used mainly for a roll-over and hide/display effect. Quite classical. After doing the above I noticed that even with the preload function taken out of the loop if you hover over the buttons the same problem re-appears, the browser appears to be still looking for some content.
You can view this [url=http://ker.ro/~puiub/bluewire/site/en/index.shtml]here[/url] (with preload on). The js is [url=http://ker.ro/~puiub/bluewire/site/en/script.js]here[/url].
You can view the version that works fine(well, untill hovering the buttons) [url=http://cripkd.ker.ro/puiu/bw-online/en/test.html]here[/url], with js [url=http://cripkd.ker.ro/puiu/bw-online/en/script.js]here[/url].
Can someone point out the bad code? ?
Thanks.

Curiously yours, crip

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 12.2004 — You have 2 onload events this can cause problems, start them both from a single onload in the body. The timer function may be starting before the page has fully loaded and thus slowing the page load.

Don't use eval() it's time consuming and unnecessary.

document.getElementById(layeref).style.visibility=status; //this works!
Copy linkTweet thisAlerts:
@KorOct 12.2004 — Works OK for me in my Firefox... "Done" appears correct... no "Transfere" delay at all. (Firefox/XP)

On the other hand I agree that in Firefox, sometimes. even the image is not fully loaded, the Stop button becomes inactive, as the image would have been fully loaded. That happens in case of huge pictures, when the connection is poor. But this is not only a Firefox behaviour, IE did the same in the same cases...
Copy linkTweet thisAlerts:
@FangOct 12.2004 — Load time is horrendous > 30sec
Copy linkTweet thisAlerts:
@cripauthorOct 12.2004 — Kor, please hover over the buttons after loading time on the first url.
×

Success!

Help @crip spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...