473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Firefox onscroll

Firefox has strange behaviour with onscroll. I have a sample page here:
http://www.dynamicwebsitesystems.com/ScrollTest.htm

If I make this the startup page for the firefox browser or launch it from
Frontpage with Preview then the onscroll works - it calls the doOnScroll
function and posts the alert when you move the scroll bar. It doesn't work
if you go to this page from another page or if you refresh the page. What is
going on here? Any way to make it work all the time?

Thanks!
Sep 27 '05 #1
1 12874

Simon Wigzell <si**********@shaw.ca> wrote in message news:96g_e.269528$Hk.230298@pd7tw1no...
Firefox has strange behaviour with onscroll. I have a sample page here:
http://www.dynamicwebsitesystems.com/ScrollTest.htm

If I make this the startup page for the firefox browser or launch it from
Frontpage with Preview then the onscroll works - it calls the doOnScroll
function and posts the alert when you move the scroll bar. It doesn't work
if you go to this page from another page or if you refresh the page. What is
going on here? Any way to make it work all the time?

Thanks!

It's clumsy to display an alert for every event.
I can't test this, but try writing it like this:

<script type="text/javascript">

function doOnScroll()
{
window.onscroll=null;
alert("Scrolled");
}

window.onscroll = doOnScroll;

</script>

--
S.C.


Sep 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: viza | last post by:
Hi! I use the onscroll event to make something like the CSS position:fixed; for MSIE. In MSIE/5.5, before a function is assigned to the event handler, it has the value null. In Opera, it is...
5
by: Mark | last post by:
How do I scroll two textareas in sync with FireFox/Mozilla? The IE solution has been posted before by Martin Honnen.
2
by: Mark Szlazak | last post by:
The following code fails in Firefox to get at selected text in the right-side textarea. Any help would be appreciated. <html> <head> <script> var agt = navigator.userAgent.toLowerCase();...
1
by: Mark Szlazak | last post by:
Is there a way to detect if an textarea onscroll event is working in Firefox (or Mozilla). I know that there is an onscroll event bubbling bug with current vesions of these browsers so I want to...
5
by: Simon Wigzell | last post by:
Looks like firefox doesn't support onscroll. Any workaround?
5
by: sam | last post by:
Hi all, I am using documnet.body.scroll to disable the window scroll bar. This works in IE only and not other browsers. Can any one tell me if there is any such method which is cross browser...
1
by: Jeremy | last post by:
Is there any way to get Mozilla to fire an event when a textarea scrolls? IE seems not to have a problem with it, but Moz just won't cooperate. I tried the W3 event model:...
0
by: Jocker | last post by:
Hi Group I'm writing an Internet Explorer plugin. Everything works well, except when I try to handle the onscroll event....
6
by: dotcom | last post by:
Hello friends, i have written following line of code in javascript for event handler but it works fine with IE but not works with Firefox it get stuck on "attachevent" ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.