Current location: Hot Scripts Forums » General Web Coding » JavaScript » refresh after return to page


refresh after return to page

Reply
  #1 (permalink)  
Old 05-08-08, 09:58 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
refresh after return to page

Hi there,

I got a list on my website with data. When I click one item of this list a pop-up is
opened and I'm able to edit this data.

When I save the changed data and close the pop-up I want the site with the list
(that's onderneath) to be refreshed so that my changes are visible...

How can I manage this?..


_j
Reply With Quote
  #2 (permalink)  
Old 05-08-08, 02:44 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
HTML alone is not capable of doing that... so thread moved to Javascript.


And try something like:
HTML Code:
<input type="submit" onclick="window.opener.location = window.opener.location;" />
Reply With Quote
  #3 (permalink)  
Old 05-09-08, 05:32 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
And to catch the event when the page is closed by the X-button in the window, you can use this:
Javascript Code:
  1. function onUnload (event) {
  2.   window.opener.location = window.opener.location;
  3. }
  4.  
  5. window.onunload = onUnload;
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
on confirm return to previous page and refresh maxat Everything Java 2 07-19-06 08:06 PM
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM


All times are GMT -5. The time now is 11:38 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.