We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,987 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Javascript Problem with Firefox

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
------------

2
Contributors
5
Replies
21 Hours
Discussion Span
7 Years Ago
Last Updated
6
Views
Question
Answered
maninweb
Newbie Poster
11 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This probably isn't a JavaScript problem. It could be a problem on your machine. Does anyone else experience the problem on your site?

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Skill Endorsements: 1

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
---------

maninweb
Newbie Poster
11 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Skill Endorsements: 1

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
---------

maninweb
Newbie Poster
11 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 7 Years Ago by tgreer

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
----------

maninweb
Newbie Poster
11 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0683 seconds using 2.69MB