onscroll event in iframe in IE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lorinho

    #1

    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?

  • Martin Honnen

    #2
    Re: onscroll event in iframe in IE



    lorinho wrote:
    [color=blue]
    > 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?[/color]

    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 .documentElemen t.scrollTop

    --

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

    Comment

    • lorinho

      #3
      Re: onscroll event in iframe in IE

      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:[color=blue]
      > lorinho wrote:
      >[color=green]
      > > 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?[/color]
      >
      > 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 .documentElemen t.scrollTop
      >
      > --
      >
      > Martin Honnen
      > http://JavaScript.FAQTs.com/[/color]

      Comment

      Working...