User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,913 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,803 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 11068 | Replies: 5 | Solved
Reply
Join Date: Jun 2005
Location: Germany
Posts: 11
Reputation: maninweb is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
maninweb maninweb is offline Offline
Newbie Poster

Javascript Problem with Firefox

  #1  
Jun 7th, 2005
Hello together...

first excuse my not very good english.

I wrote an JavaScript application which shows, hides and scrolls several layers included in my homepage.
I used only DIV-Tags for my layers and I used intensively CSS for the site's layout.
When scrolling my layer(s), I move a content layer by its position below a mask layer.

All scripts work fine in the common browsers (FF, NS and IE). The problem is now that Firefox
sometimes makes the scrolling very very slow. This applies to Netscape 7.x too.

When I say "sometimes", I mean that the problem not appears everytime. For example, if
I start FF the first time on my computer (Win XP SP2 German) and then call my site, all
works fine. If I close FF and I restart it, the browser lets scroll the content very slowly.
The same thing appears, when I start Netscape 7 first and then Firefox. There's a
difference between the FF Version too. With FF 0.8, there's no problem. Just newer
versions are affected.

For scrolling the content, I used the JS Functions setInterval() and clearInterval().
I putted them via my own functions on the onmousedown and onmouseup events.
There is no difference, if I use the functions setTimeout() and clearTimeout().
If someone needs my code, I can provide it.


So I hope now, someone can help me here.

Thanks in advance for any response !!!


maninweb
------------
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Javascript Problem with Firefox

  #2  
Jun 7th, 2005
This probably isn't a JavaScript problem. It could be a problem on your machine. Does anyone else experience the problem on your site?
Reply With Quote  
Join Date: Jun 2005
Location: Germany
Posts: 11
Reputation: maninweb is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
maninweb maninweb is offline Offline
Newbie Poster

Re: Javascript Problem with Firefox

  #3  
Jun 7th, 2005
Hi tgreer...

thanks for your response. Unfortunately its not a problem of my machine
since on various computers I got the same problem. Common to all computers
is Win XP SP2 German.

Some users - not all - in different forums also reported to me this problem.


If you like to test it, you can do it here...

http://www.maninweb.de/current/index.html

Note that the development of the site is still in progress and is at this
time available in german only. For test purposes please select "HTML"
by ignoring "available soon" and try to scroll the news content window.


maninweb
---------
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Javascript Problem with Firefox

  #4  
Jun 7th, 2005
Yes, you're correct. It is much slower in FireFox. I'm running Windows XP, SP2, English.

If you can strip down a sample page that includes ONLY your news scroller, and post it here, I will do what I can to help.
Reply With Quote  
Join Date: Jun 2005
Location: Germany
Posts: 11
Reputation: maninweb is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
maninweb maninweb is offline Offline
Newbie Poster

Re: Javascript Problem with Firefox

  #5  
Jun 8th, 2005
Hi tgreer...

Thousand Thanks !!!

I'll strip down a sample page and post it as an attachement and
load it on my server. I'll post a new message here, when I'm
ready.

maninweb
---------
Reply With Quote  
Join Date: Jun 2005
Location: Germany
Posts: 11
Reputation: maninweb is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
maninweb maninweb is offline Offline
Newbie Poster

Solution Javascript Problem with Firefox

  #6  
Jun 8th, 2005
Hi tgreer...

the problem is solved. I used the Javascript Function setInterval(xxx, 2).
The timeout interval was too small (2 ms). I setted it to 50 ms and now
all works fine.

Thanks anyway for proposition to help.

maninweb
----------
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:13 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC