jQuery scroll fails for iframe (firefox)

Posted by knappy on Stack Overflow See other posts from Stack Overflow or by knappy
Published on 2010-05-05T15:03:33Z Indexed on 2010/05/05 15:08 UTC
Read the original article Hit count: 215

Filed under:
|

I cannot get scroll to work, here is the complete stuff: http://zed.mit.edu/scroll2/buc.php

I'm trying to refresh the page while maintaining the scroll position of the iframe inside.

I'd like to have an alert when I actively scroll the iframe, these two both fail:

$(top).frames['#iframe_bucinid'].scroll(function() ....

$('#iframe_bucinid').scroll(function() ...

The page's iframe is defined as:

<iframe class="inframe" src="bucin.php" name="bucin" id="iframe_bucinid">

Notice that getting the scrollTop works with

top.frames['bucin'].document.body.scrollTop

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript