Closed Thread Icon

Preserved Topic: load/update from iframe (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18411" title="Pages that link to Preserved Topic: load/update from iframe (Page 1 of 1)" rel="nofollow" >Preserved Topic: load/update from iframe <span class="small">(Page 1 of 1)</span>\

 
Rane
Bipolar (III) Inmate

From: Denmark
Insane since: Oct 2001

posted posted 06-10-2002 10:13

morning

I have a site which contains an iframe with a login form (and when logged in, some admin options). This iframe is the same on all the webpages on the site.

Now I wanna update the "outer .asp side" when the user clicks the submit button in the iframe to login. Example:

The user is browsing through the "links" page (could be any other section) on the site - and decides he wanna login, so he goes to the iframe, types his password and clicks "login". Then the iframe updates itself with some admin options - but i also want the "links" page to update (just a refresh/reload) as well, making some special admin options available on that exact page too.

Dunno if its too confusing. Basically I want the iframe to to update itself first, going through login validation etc. and if its successful, it should refresh the outer page too.

How can this be done?

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-10-2002 14:59

Rane: If I understand you correctly what you want it not strictly possible as an iframe is an inline frame it is embedded into the page. You could make the main page reload when someone logs in in the iframe but it would make the iframe reload too and if you were to do the reload on the onsubmit it could cause real problems. A few solutions:

1. Have the pages load into the iframe and the login form as the main page.

2. Do away with the iframe all together - it is difficult to tell from what you are saying but it doesn't really sound like the iframe is necessary and as it has severe cross-browser problems it would be wise to avoid iframes if possible.

Anyway have a look down through these as something might jump out which could help:
http://developer.irt.org/script/frame.htm

___________________
Emps

FAQs: Emperor

someoneInverse
Bipolar (III) Inmate

From:
Insane since: May 2002

posted posted 06-11-2002 10:42

the best way to do this is to submit the form in the iframe in order to log the user on and set your cookies or session variables with the authentication information that identifies the user as logged on

and then fire
this.parent.document.location.reload()
on the body onload event for the iframe content page

this should load the entire shebang again, displaying all the admin options you want
hth
I:.

« BackwardsOnwards »

Show Forum Drop Down Menu