Here is the script of my guestbook. its a combo between php and javascript.
de $query inserts the data in the mysql database. and then the window has to
close itself... but it wont work :(
else
{
$query1 = mysql_query("IN SERT INTO gbook (naam, email, text) VALUES
('".$_POST['naam']."', '".$_POST['email']."', '".$_POST['text']."')");
?>
<script language="JavaS cript">
<!--
opener.reload(t rue);
self.close();
//-->
</script>
<?
}
And here is the javascript of how i open the popup window. maybe that can
help
<script language="JavaS cript">
<!--
function popup(url)
{
window.open(url , 'Gastenboek', 'scrollbars=yes ,height=400,wid th=400')
}
//-->
</script>
----- Original Message -----
From: "kaeli" <ti******@NOSPA M.comcast.net>
Newsgroups: comp.lang.javas cript
Sent: Friday, June 25, 2004 3:23 PM
Subject: Re: location.href, a popup and frames
In article <cb**********@n ews4.tilbu1.nb. home.nl>, hl*****@fjslfj. com
enlightened us with... i made myself a guestbook. when people want to write in it, a pop-up
appears with the form. now this is what i want to happen when they wrote in it:
the pop-up has to close itself ( self.close() ? ) and the guestbook page
has to refresh itself in a frame called 'inhoud'...
can somebody help me pls ?
opener.reload(t rue);
self.close();
Assuming the 'inhoud' frame was the window that opened the popup.
--
--
~kaeli~
No one is listening until you make a mistake.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
"Chris Geerdink" <hl*****@fjslfj .com> schreef in bericht
news:cb******** **@news4.tilbu1 .nb.home.nl... i made myself a guestbook. when people want to write in it, a pop-up
appears with the form. now this is what i want to happen when they wrote in it:
the pop-up has to close itself ( self.close() ? ) and the guestbook page
has to refresh itself in a frame called 'inhoud'...
can somebody help me pls ?