473,695 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.pageXOf fset' and
'window.pageYOf fset' are not correct. Is there any other way to get
the correct scrolling offsets?
Jul 23 '05 #1
3 4687
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.onscro ll does not fire when using
the mouse wheel, even in Firefox 1.0PR.

<script type="text/javascript">
document.onscro ll = function() {
window.status = window.pageXOff set + ';' + window.pageYOff set;
return true;
}
var i = 100;
while (i-- > 0) {
document.write( '<div style="height:1 00px;>' + i + '</div>');
}
</script>
2. When arrow keys are used to scroll a page in Netscape 6.x, the
scrolling offsets obtained using 'window.pageXOf fset' and
'window.pageYOf fset' 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.pageXOff set + ';' + window.pageYOff set;
return true;
}
var i = 100;
while (i-- > 0) {
document.write( '<div style="height:1 00px;>' + i + '</div>');
}
setInterval('ti med()', 2000);
</script>

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript 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.onscro ll 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.onscro ll = function() {
window.status = window.pageXOff set + ';' + window.pageYOff set;
return true;
}
var i = 100;
while (i-- > 0) {
document.write( '<div style="height:1 00px;>' + i + '</div>');
}
</script>
2. When arrow keys are used to scroll a page in Netscape 6.x, the
scrolling offsets obtained using 'window.pageXOf fset' and
'window.pageY Offset' 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.pageXOff set + ';' + window.pageYOff set;
return true;
}
var i = 100;
while (i-- > 0) {
document.write( '<div style="height:1 00px;>' + i + '</div>');
}
setInterval('ti med()', 2000);
</script>

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript 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.pageXOf fset' and
'window.pageYOf fset' 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
6228
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" type="text/javascript"> function fix(){
2
2929
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 allowing me to lose those horrible scrollbars. Regards Hugh Dickinson h.j.dickinson@dur.ac.uk
7
1985
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 want the objects (colored divs) to scroll with the mouse in Opera 6. I give the mouse y coords (-) window.pageYOffset and the objects (+) window.pageYOffset. However, in Opera 7 it doesn't work. Only the following objects need (+)...
5
1630
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 how can I capture window.close event in my application and then call a asp script in that function.
3
8852
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 object? // get inputElement alert("Some java script code"); inputElement.onkeyup = ????;
15
7047
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 following html <a href="#"><IMG SRC="xxx.jpg" ISMAP></a> and save these to a file for later handling. The coordinates appear on the bottom left of the window as I move the mouse, so I know they're being passed around somehow, but I haven't...
9
27075
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 that the Windows Shell is creating the form (it is defined in a DLL). I copy and pasted the form's code over to another application which created the form through an executable, and tabbing worked fine - so that is my only guess. Anyway, I'd...
5
2515
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 drag'n'dropping the scroll bar First two are easy to implement, but the third one doesn't trigger even document.onmousedown I investigated on firefox and safari under osx.
0
8559
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9112
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8818
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6487
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5832
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4338
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2996
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2261
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.