iframe losing reference to top?

L

Logos

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.registerProfile(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
 
L

Logos

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.registerProfile(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...security model fubar'ing me?
 

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

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top