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

onscroll event in iframe in IE

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

http://msdn.microsoft.com/library/en...true#scrolling

Has anyone made this work successfully before?

Jul 23 '05 #1
2 6584


lorinho wrote:
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...

http://msdn.microsoft.com/library/en...true#scrolling

Has anyone made this work successfully before?


What is not working, does onscroll not fire, or does the scrolling
position on the frame that you want to synchronize not change, or do you
get a security error ("permission denied").

That article is old and if you are using IE 6 in strict mode then
instead of manipulating
window.document.body.scrollTop
you would need to manipulate
window.document.documentElement.scrollTop

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
I'm able to get to the document body of the iframe and manipulate it
(change background color for example) but I can't capture the onscroll
event of the iframe... Any other ideas?
Thanks,
James

Martin Honnen wrote:
lorinho wrote:
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...

http://msdn.microsoft.com/library/en...true#scrolling

Has anyone made this work successfully before?


What is not working, does onscroll not fire, or does the scrolling
position on the frame that you want to synchronize not change, or do you
get a security error ("permission denied").

That article is old and if you are using IE 6 in strict mode then
instead of manipulating
window.document.body.scrollTop
you would need to manipulate
window.document.documentElement.scrollTop

--

Martin Honnen
http://JavaScript.FAQTs.com/


Jul 23 '05 #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...
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....
2
by: Sam | last post by:
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.