
July 23rd, 2007, 08:05 AM
| | | 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 | 
July 23rd, 2007, 11:15 AM
| | | Re: subwindow - refresh parent
Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
GMT Wolf Grossi scribed: Quote:
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. | 
July 23rd, 2007, 11:35 AM
| | | Re: subwindow - refresh parent
Neredbojias wrote: Quote:
Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
GMT Wolf Grossi scribed:
> Quote:
>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 | 
July 23rd, 2007, 11:55 AM
| | | Re: subwindow - refresh parent
"Wolf Grossi" <ng-wg@magro-soft.comwrote in message
news:5b27f$46a45117$55c71c0e$6002@news.inode.at... Quote:
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 | 
July 23rd, 2007, 12:15 PM
| | | Re: subwindow - refresh parent
[snip] Quote:
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 | 
July 23rd, 2007, 02:25 PM
| | | Re: subwindow - refresh parent
Wolf Grossi wrote: Quote:
>
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 | 
July 23rd, 2007, 02:35 PM
| | | Re: subwindow - refresh parent
Bergamot wrote: Quote:
Wolf Grossi wrote: Quote: |
>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 |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|