473,218 Members | 1,796 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,218 software developers and data experts.

Capturing scrolling event in Netscape 6.x

1. Is there an event to capture scrolling using mouse wheel in
Netscape 6.x?

2. When arrow keys are used to scroll a page in Netscape 6.x, the
scrolling offsets obtained using 'window.pageXOffset' and
'window.pageYOffset' are not correct. Is there any other way to get
the correct scrolling offsets?
Jul 23 '05 #1
3 4650
Vikram Bhatia wrote:
1. Is there an event to capture scrolling using mouse wheel in
Netscape 6.x?
There does not appear to be, document.onscroll does not fire when using
the mouse wheel, even in Firefox 1.0PR.

<script type="text/javascript">
document.onscroll = function() {
window.status = window.pageXOffset + ';' + window.pageYOffset;
return true;
}
var i = 100;
while (i-- > 0) {
document.write('<div style="height:100px;>' + i + '</div>');
}
</script>
2. When arrow keys are used to scroll a page in Netscape 6.x, the
scrolling offsets obtained using 'window.pageXOffset' and
'window.pageYOffset' are not correct. Is there any other way to get
the correct scrolling offsets?


They appear correct in Firefox 1.0PR, Mozilla 1.7.3 and Mozilla 1.0.2
(the oldest version I've got, Netscape 6 might be based on an earlier
Milestone however):

<script type="text/javascript">
function timed() {
window.status = window.pageXOffset + ';' + window.pageYOffset;
return true;
}
var i = 100;
while (i-- > 0) {
document.write('<div style="height:100px;>' + i + '</div>');
}
setInterval('timed()', 2000);
</script>

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
DU
Grant Wagner wrote:
Vikram Bhatia wrote:

1. Is there an event to capture scrolling using mouse wheel in
Netscape 6.x?

There does not appear to be, document.onscroll does not fire when using
the mouse wheel, even in Firefox 1.0PR.


That's because of bug 189308.
http://bugzilla.mozilla.org/show_bug.cgi?id=189308

But if you try this page

http://www10.brinkster.com/doctorunc...rollEvent.html

with NS 7.0 , you'll see that mousewheel rolling will trigger, will fire
the scroll event.
There is also a DOMMouseScroll event as an event.type which is the
equivalent of mousewheel event in IE's DOM event.

<script type="text/javascript">
document.onscroll = function() {
window.status = window.pageXOffset + ';' + window.pageYOffset;
return true;
}
var i = 100;
while (i-- > 0) {
document.write('<div style="height:100px;>' + i + '</div>');
}
</script>
2. When arrow keys are used to scroll a page in Netscape 6.x, the
scrolling offsets obtained using 'window.pageXOffset' and
'window.pageYOffset' are not correct.
That's exactly bug 189308. The pageX/YOffset values are not updated.

Is there any other way to getthe correct scrolling offsets?

They appear correct in Firefox 1.0PR, Mozilla 1.7.3 and Mozilla 1.0.2
(the oldest version I've got, Netscape 6 might be based on an earlier
Milestone however):


They will *not* with arrow keys, mousewheel rolling and autoscroll. (But
they will when using mouse to drag the scrollbar thumb or click the
scrollbar arrows.) The scroll event is fired when using arrow keys,
PgDn/Up, Home key but the window.pageX/YOffset values are not updated:
bug 189308.

<script type="text/javascript">
function timed() {
window.status = window.pageXOffset + ';' + window.pageYOffset;
return true;
}
var i = 100;
while (i-- > 0) {
document.write('<div style="height:100px;>' + i + '</div>');
}
setInterval('timed()', 2000);
</script>

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq


Vikram and you should vote for bug 189308 :)
Btw, Grant, I may have a question for you. I've took bug 74952 as an
assignement
https://bugzilla.mozilla.org/show_bug.cgi?id=74952
and I'd be interested to hear suggestions you may have about the document
http://www.mozilla.org/docs/web-deve...upgrade_2.html

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #3
DU
Vikram Bhatia wrote:
1. Is there an event to capture scrolling using mouse wheel in
Netscape 6.x?

2. When arrow keys are used to scroll a page in Netscape 6.x, the
scrolling offsets obtained using 'window.pageXOffset' and
'window.pageYOffset' are not correct. Is there any other way to get
the correct scrolling offsets?


The firing of scroll event started only with version 7.0.

https://bugzilla.mozilla.org/show_bug.cgi?id=35011#c64

DOMMouseScroll (mousewheel rolling event) also started with NS 7.0.

Vikram, you can vote for bug 189308 by creating an account:

https://bugzilla.mozilla.org/createaccount.cgi

and then voting here:
https://bugzilla.mozilla.org/votes.c...&bug_id=189308

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #4

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

Similar topics

9
by: johkar | last post by:
I only have IE 6 and dial-up. Can you help me determine which browsers support this code? Thanks, John <html> <head> <title>Fixed Table Headers</title> <script language="JavaScript"...
2
by: Hugh Dickinson | last post by:
Does anybody know whether the netscape 7+ browsers support afunction similar to the internet explorer doScroll() function, this has the effect of pressing the scrollbar button, but can be scripted...
7
by: Pete | last post by:
I'm working (playing) on a mouse following script. Yes, the sort no one likes but I'm having great fun tinkering with it - sad. Anyway, if there's enough page content to cause scrolling and I...
5
by: ashutosh.bhardwaj1980 | last post by:
Hi, I amdeveloping a web site in ASP and it is a secure site. I would like someone to help me on this: -->i dont want 2 users to accesss my site with the same username parallely. --> Also...
3
by: Trent | last post by:
Hi. I know the basic way to assign event handlers: <input onKeyUp="processEvent(event)" /> But how do I assign a function to the onKeyUp event in *javascript* that can access the event...
15
by: Tony Gahlinger | last post by:
I'm using my browser (Mozilla/5.0 Linux i686 Gecko/20031007 Firebird/0.7) to do some client-side image processing. I want to capture the sequence of coordinates a user clicks on in xxx.jpg in the...
9
by: supster | last post by:
Hello, I'm trying to capture when users press the tab key. This is scrolling through different fields with tab is broken in my form. I'm not sure why, but it may have something to do with the fact...
5
by: konryd | last post by:
I want to know when a user scrolls the textarea. Since there is no such an event, I need to scroll all the ways scrolling might be invoked, that is: * by pressing keys * by moving mouse * by...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.