subwindow - refresh parent.

W

Wolf Grossi

Greetings,

how to refresh or reload a parent window after processing forms from the
subwindow?

Currently I have a solution (see below) which works with IE and
Konqueror, but not with Firefox, so I assume it's not a clean solution.



ParentWindow:
==============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body onLoad="self.name='MainWindow';">
Date: <!--#exec cmd="date" --><hr>
<a href="t2.html?pass=1" target='SubWindow'>Open SubWindow</a>
</body>
</html>



SubWindow
=========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<form action="t1.html" target="MainWindow"
onClick="window.close();" method="post">
text: <input type="text" value="" name="text">
<input type="submit" value="OK">
<input type="hidden" name="pass" value="2">
</form>
</body>
</html>




Thanks for reading and hints
Wolf
 

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

No members online now.

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top