By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,452 Members | 974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,452 IT Pros & Developers. It's quick & easy.

iframe losing reference to top?

P: n/a
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
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 2, 12:19 pm, Logos <tyler.st...@gmail.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.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?
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.