Click to See Complete Forum and Search --> : Refresh the main page from the pop up window ???


Data-Base
09-02-2003, 08:24 AM
hello all :)

I have this problem :

I have a page that has text input fealds... what i need to do is if i click REVIEW it will open a popup window with preview and

then in this popup window if i click BACK then it will close it self and i'll have my orginal web page :-)


all that is not a problem ... the thing is that

wen i click in the popup window SUBMIT then it will sub mit and (reset or refresh) the orginal web page ...

how i can do that ????

Click here to see this picture that i made ... so you can have a clear picture about what i mean. (http://www.sarmad.mine.nu/pages.gif)

Thank you all for your help :D

Khalid Ali
09-02-2003, 08:55 AM
if you just want to reload your parent page ? then here is how you cna do that

top.opener.location.reload(true);

the above will reload the parent page from a child window.

Data-Base
09-02-2003, 01:39 PM
Thnks alot for your help ...


have a nice day

Data-Base
09-04-2003, 04:20 PM
but the question is where I have to put the:
top.opener.location.reload(true);

my code is :

<form action="submit.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="top.opner.location.reload(true);">
---------------
----------------------------
-------------------------------
----------------------------
<input name="Submit" type="submit" value="Submit" >
<input name="back" type="button" id="back" value="Back">
</div>
</form>

and it is not reloading the page

am I missing something here

Khalid Ali
09-04-2003, 04:36 PM
notice the wrong spellings???

top.opner.location.reload(true);

should be

top.opener.location.reload(true);