Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > iframe losing r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 35463 of 36378
Post > Topic >>

iframe losing reference to top?

by Logos <tyler.style@[EMAIL PROTECTED] > May 2, 2008 at 12:19 PM

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 im****tantly, is there some way to get around it and access top
again from my function?

Thanks!

Tyler
 




 2 Posts in Topic:
iframe losing reference to top?
Logos <tyler.style@[EM  2008-05-02 12:19:15 
Re: iframe losing reference to top?
Logos <tyler.style@[EM  2008-05-02 12:39:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:49:37 CDT 2008.