Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 23rd, 2007, 08:05 AM
Wolf Grossi
Guest
 
Posts: n/a
Default 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
  #2  
Old July 23rd, 2007, 11:15 AM
Neredbojias
Guest
 
Posts: n/a
Default 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.
  #3  
Old July 23rd, 2007, 11:35 AM
Wolf Grossi
Guest
 
Posts: n/a
Default 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
  #4  
Old July 23rd, 2007, 11:55 AM
rf
Guest
 
Posts: n/a
Default 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


  #5  
Old July 23rd, 2007, 12:15 PM
Wolf Grossi
Guest
 
Posts: n/a
Default 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
  #6  
Old July 23rd, 2007, 02:25 PM
Bergamot
Guest
 
Posts: n/a
Default 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
  #7  
Old July 23rd, 2007, 02:35 PM
Wolf Grossi
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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.
Post your question now . . .
It's fast and it's free

Popular Articles