August 9th, 2001, 06:06 PM
Ok, I asked a question in here about resolution sniffing and PHP a while back and the question was resolved very nicely... I'm hoping someone can help again!
I have a script to allow users to add a gig for their band. At a point in the script, they have the option to click a link which adds a new venue if the venue they're playing at is not currently listed.
On clicking the link, a new window opens and the code for adding a new venue is invoked.
After successfully adding a new venue, the venue window is closed and the referring window (the gigs screen) is refreshed to reflect the changes made to the venues list.
This is achieved using the following php after successfully adding a venue:
$html="<html><head><title>New Venue "
."<body bgcolor=#336699 onload=\"settimeout(window.close(),5000); opener.location.reload();\">"
."<br>New venue added - please close this window!"
However I cannot get the referring window to refresh with this code... does anyone have any ideas?
PS - see the instructions in one of my replies on the JS forum to see an example:
August 9th, 2001, 07:46 PM
<html><head><title>New Venue Added</title></head>
<br>New venue added - please close this window!