473,396 Members | 1,998 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.

onscroll Event Not Firing in ASP.NET 2.0

Sam
While attempting to get my floating toolbar to work in ASP.NET 2.0, I
noticed that the onscroll event is not firing. I've specified this on
the BODY tag, as always.

After some testing, I realized that the new DocType being used in 2.0
(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) is the
culprit.

Upon using the old 1.1 DocType (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN" >) the onscroll event began firing again.

I've read that the new doctype really should be used, but I can't seem
to find any workarounds when using the new one.

Anyone else having this problem?

Sep 29 '06 #1
2 2154
q
The DOCTYPE is for XML (XHTML is a type of XML) and has absolutely
nothing to do with ASP.NET in any way shape or form. If you use it,
you have stronger rules to apply. Make sure you run your output
through an XHTML validator. As programmers we must obey the specs,
even if things seem to work perfectly. So, it's not that one is 1.1
and the other is 2.0.

You're going to have to paste some code. What do you mean it's on
<body"as always"? That means we have to compare that to something...
what are we comparing it to? Like I say XHTML has more rules to help
keep us in line (the point of rules!) So, while HTML didn't care about
anything and was an environment for complete and utter anarchy, XHTML
grants us a level of control and elegance. You're breaking a rule
somewhere...

Sam wrote:
While attempting to get my floating toolbar to work in ASP.NET 2.0, I
noticed that the onscroll event is not firing. I've specified this on
the BODY tag, as always.

After some testing, I realized that the new DocType being used in 2.0
(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) is the
culprit.

Upon using the old 1.1 DocType (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN" >) the onscroll event began firing again.

I've read that the new doctype really should be used, but I can't seem
to find any workarounds when using the new one.

Anyone else having this problem?
Sep 29 '06 #2
It appears that when I use the XHTML doctype, the BODY tag does not expose
an onscroll event. When using the other doctype I mentioned, the onscroll
event is valid on the BODY tag and fires when appropriate.
"q" <ag******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
The DOCTYPE is for XML (XHTML is a type of XML) and has absolutely
nothing to do with ASP.NET in any way shape or form. If you use it,
you have stronger rules to apply. Make sure you run your output
through an XHTML validator. As programmers we must obey the specs,
even if things seem to work perfectly. So, it's not that one is 1.1
and the other is 2.0.

You're going to have to paste some code. What do you mean it's on
<body"as always"? That means we have to compare that to something...
what are we comparing it to? Like I say XHTML has more rules to help
keep us in line (the point of rules!) So, while HTML didn't care about
anything and was an environment for complete and utter anarchy, XHTML
grants us a level of control and elegance. You're breaking a rule
somewhere...

Sam wrote:
>While attempting to get my floating toolbar to work in ASP.NET 2.0, I
noticed that the onscroll event is not firing. I've specified this on
the BODY tag, as always.

After some testing, I realized that the new DocType being used in 2.0
(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) is the
culprit.

Upon using the old 1.1 DocType (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN" >) the onscroll event began firing again.

I've read that the new doctype really should be used, but I can't seem
to find any workarounds when using the new one.

Anyone else having this problem?

Sep 29 '06 #3

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...
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...
2
by: lorinho | last post by:
Alright, I'm stumped. Per this article from Microsoft I should be able to capture the onscroll event for an iframe but for some reason it doesn't seem to be working for me... ...
1
by: Simon Wigzell | last post by:
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...
0
by: gregtyndall | last post by:
I have a weird problem. I'm using a master page to hold a menu that I want to scroll as the user scrolls in the browser window so it will always be visible. First off, putting onsroll in the body...
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....
0
by: Jocker | last post by:
I'll try reposting this message with the hope someone can help me with this issue. PS: is this the right newsgroup for this question? --- Hi Group I'm writing an Internet Explorer plugin....
0
by: bluegrasslover | last post by:
I've gotten a couple of emails about this problem lately so I'm going to post the solution that someone emailed me a while back. When you create a master page visual studio automatically adds a...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.