onscroll event in iframe in IE

M

Martin Honnen

lorinho said:
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-us/dnwebteam/html/webteam02052001.asp?frame=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
 
L

lorinho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,128
Latest member
ElwoodPhil
Top