473,224 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

location.href, a popup and frames

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 ?
Jul 23 '05 #1
3 2263
In article <cb**********@news4.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(true);
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

Jul 23 '05 #2
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("INSERT INTO gbook (naam, email, text) VALUES
('".$_POST['naam']."', '".$_POST['email']."', '".$_POST['text']."')");
?>
<script language="JavaScript">
<!--
opener.reload(true);
self.close();
//-->
</script>
<?
}

And here is the javascript of how i open the popup window. maybe that can
help

<script language="JavaScript">
<!--
function popup(url)
{
window.open(url, 'Gastenboek', 'scrollbars=yes,height=400,width=400')
}
//-->
</script>

----- Original Message -----
From: "kaeli" <ti******@NOSPAM.comcast.net>
Newsgroups: comp.lang.javascript
Sent: Friday, June 25, 2004 3:23 PM
Subject: Re: location.href, a popup and frames

In article <cb**********@news4.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(true);
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 ?

Jul 23 '05 #3
In article <cb**********@news1.tilbu1.nb.home.nl>, hl*****@fjslfj.com
enlightened us with...
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 :(
'It doesn't work' is a bit of a general statement.
Does it throw an error?
Does anything happen at all?

else
Where is this PHP code?
It needs to be in a syntactically valid HTML document between the <body>
and </body> tags for the javascript to run.
{
$query1 = mysql_query("INSERT INTO gbook (naam, email, text) VALUES
('".$_POST['naam']."', '".$_POST['email']."', '".$_POST['text']."')");
?>
<script language="JavaScript">

<script language="javascript" type="text/javascript">

If it still won't close the window, look at the HTML source of the popup
and post it here (view source). The php runs on the server. I don't care
what it says. Only what the browser sees matters here. ;)
--
--
~kaeli~
Can you be a closet claustrophobic?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
14
by: Frances Del Rio | last post by:
I'm trying to open a url in a new window while pg loads (but NOT in a pop-up..) I need to do sthg like // while pg is loading.. window.location ='page.html' // but I need this to open in a...
3
by: saiho.yuen | last post by:
Hi, Is anyone know what is the difference between Location.href and Window.location.href Thanks you very much:) Saiho
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
1
by: Leon | last post by:
From parent windows, I have created a popup windows that comprises two frames. When I have clicked a link button in one of the frames, I would like to redirect the parent windows to somewhere. So...
2
by: ENIZIN | last post by:
I am having an interesting problem where I am simply trying to put in country selection popup window on my site. When the user closes the window the popup should call the...
4
by: ChrisC | last post by:
I have a nice simple page - navigation frame on the left, main panel on the right - <frameset cols = "20%, 80%"> <frame src="LeftPanel.aspx" id="leftFrame" name="leftFrame" width="20%"...
6
by: August Karlstrom | last post by:
Hi everyone, I have some problems loading a page into a frame from a different frame. In Firefox and Explorer the lower frame displays "Test..." but in some older version of Safari it is left...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.