iframe losing reference to top?

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

    iframe losing reference to top?

    I have a bit of an issue that seems like it should be simple, but I'm
    missing some crucial understanding of some sort.

    I have a login page I am loading into an iframe from a button click on
    the page. The iframe page submits to itself, and reloads with the
    results of the login. One of the things the reloaded page should do
    after it loads is call "top.registerPr ofile(profile)" . This generates
    an error - top is now returning as an HTML node "[object Window]"
    instead of a javascript object as it was before the page was submitted
    to itself.

    Can anyone tell me why this is? I am thinking it is because the page
    was reloaded from an internal link, breaking the 'connection' to the
    surrounding page.

    More importantly, is there some way to get around it and access top
    again from my function?

    Thanks!

    Tyler
  • Logos

    #2
    Re: iframe losing reference to top?

    On May 2, 12:19 pm, Logos <tyler.st...@gm ail.comwrote:
    I have a bit of an issue that seems like it should be simple, but I'm
    missing some crucial understanding of some sort.
    >
    I have a login page I am loading into an iframe from a button click on
    the page. The iframe page submits to itself, and reloads with the
    results of the login. One of the things the reloaded page should do
    after it loads is call "top.registerPr ofile(profile)" . This generates
    an error - top is now returning as an HTML node "[object Window]"
    instead of a javascript object as it was before the page was submitted
    to itself.
    >
    Can anyone tell me why this is? I am thinking it is because the page
    was reloaded from an internal link, breaking the 'connection' to the
    surrounding page.
    >
    More importantly, is there some way to get around it and access top
    again from my function?
    >
    Thanks!
    >
    Tyler
    An addendum - the link to the iframe is HTTPS. I changed it to HTTP,
    and now it works...securit y model fubar'ing me?

    Comment

    Working...