469,623 Members | 1,971 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

subwindow - refresh parent

Greetings,

how to refresh 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
Jul 23 '07 #1
6 4020
Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
GMT Wolf Grossi scribed:
Greetings,

how to refresh 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>
Why don't you have the script file just reload the main page?

--
Neredbojias
Half lies are worth twice as much as whole lies.
Jul 23 '07 #2
Neredbojias wrote:
Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
GMT Wolf Grossi scribed:
>Greetings,

how to refresh 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>

Why don't you have the script file just reload the main page?
Well, this is an excerpt only.
The main page contains a form, so when reloading, a popup
'confirm resend...' appears, which is not desired.

Wolf
Jul 23 '07 #3
rf

"Wolf Grossi" <ng***@magro-soft.comwrote in message
news:5b**************************@news.inode.at...
Greetings,

how to refresh a parent window after processing forms from the subwindow?
Could you please explain why you need that "subwindow"?

Remove the popup, problem solved.

--
Richard
Jul 23 '07 #4
[snip]
Could you please explain why you need that "subwindow"?

Remove the popup, problem solved.
C'mon, this does not answer the question.
If it's not possible from YPOV, say it.
Wolf
Jul 23 '07 #5
Wolf Grossi wrote:
>
how to refresh a parent window after processing forms from the subwindow?
Why don't go ask in a more appropriate newsgroup?
comp.lang.javascript is over there -->

--
Berg
Jul 23 '07 #6
Bergamot wrote:
Wolf Grossi wrote:
>how to refresh a parent window after processing forms from the subwindow?

Why don't go ask in a more appropriate newsgroup?
comp.lang.javascript is over there -->
yes of course, tnx.
Wolf
Jul 23 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Venkat | last post: by
4 posts views Thread by Andrew Alger | last post: by
2 posts views Thread by Paul Moffitt | last post: by
2 posts views Thread by Jeronimo Bertran | last post: by
1 post views Thread by Marcel | last post: by
5 posts views Thread by Peter | last post: by
1 post views Thread by Wolf Grossi | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.