Connecting Tech Pros Worldwide Forums | Help | Site Map

subwindow - refresh parent

Wolf Grossi
Guest
 
Posts: n/a
#1: Jul 23 '07
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

Neredbojias
Guest
 
Posts: n/a
#2: Jul 23 '07

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.
Wolf Grossi
Guest
 
Posts: n/a
#3: Jul 23 '07

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
rf
Guest
 
Posts: n/a
#4: Jul 23 '07

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


Wolf Grossi
Guest
 
Posts: n/a
#5: Jul 23 '07

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
Bergamot
Guest
 
Posts: n/a
#6: Jul 23 '07

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
Wolf Grossi
Guest
 
Posts: n/a
#7: Jul 23 '07

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
Closed Thread