SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 23rd, 2003, 01:13 PM
Danicek Danicek is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Czech Republic
Posts: 79 Danicek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Danicek
Refresh page

I have this problem:

I open window to add news with java
onclick="window.open...". Then I submit form on this new page.
What I need is to automaticaly close this page ofter submiting form with <input type="sumbit"...> and automaticaly refersh main page.
Is it possible? I now how to close window with close.window, but I am not able to force automatical refresh of main page.

Thanks for all advices.

Reply With Quote
  #2  
Old February 23rd, 2003, 04:04 PM
grremlins grremlins is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 grremlins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to grremlins
RE: Refresh page

here's a couple of ideas.

In the new window that you pop open, have a function that runs on closing the window.

(html body tag)
< body onUnload="closer()">

javascript function closer(){
window.opener.location="opener.html";
//make opener.html the filename of
// the page that popped this window.
this.window.close();
}

this might not be the cleanest method, but it does work.

Reply With Quote
  #3  
Old February 23rd, 2003, 04:39 PM
Danicek Danicek is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Czech Republic
Posts: 79 Danicek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Danicek
RE: Refresh page

Very interesting idea. I will try it soon. Thanks for help.

Reply With Quote
  #4  
Old February 23rd, 2003, 06:54 PM
Danicek Danicek is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Czech Republic
Posts: 79 Danicek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Danicek
RE: Refresh page

It really works, thanks very much for tips

Reply With Quote
  #5  
Old July 11th, 2004, 02:43 AM
timlab timlab is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: walden,ny
Posts: 77 timlab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: Refresh page

Ok, I think I have how this works! You have a window that open another window. Did some stuff in this other window and then in the other window you have this code that closes the 2nd window and refreshes the first window right? If this is so, where does everything go? I'm been searching for something like this and NOTHING has worked .
Quote:
here's a couple of ideas.

In the new window that you pop open, have a function that runs on closing the window.

(html body tag)
< body onUnload="closer()">

javascript function closer(){
window.opener.location="opener.html";
//make opener.html the filename of
// the page that popped this window.
this.window.close();
}

this might not be the cleanest method, but it does work.


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Refresh page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway