Solved

Open Child Window/Insert Information/Refresh Parent window

Posted on 2002-07-03
6
265 Views
Last Modified: 2013-12-24
Hello, I click on a button that opens a small child window to enter a comment into a <TextArea>  I then hit submit which goes to the insert.cfm page.  I have it saying.. "thank you, your information has been entered" with a "Close" Button under it.

What I would like it to do is  when you click the close button(which obviously closes the child window). I would like it to refresh the parent page(a framed page) so that the comment can now be viewable...

So all i am looking for is a way to refresh the page after closing the child window... Everything else works great.

THanks
0
Comment
Question by:jeffmace
  • 3
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
CFXPERT earned 300 total points
ID: 7127727
create a javascript function then call it from the close button.

<script language="javascript">
function reloadParent(){
window.opener.location.reload();
window.self.close()
}
</script>

<input type="button" name="button" value="Close" onClick="reloadParent()">

hope this helps
0
 

Author Comment

by:jeffmace
ID: 7127755
Worked Perfectly... Thank you
0
 

Author Comment

by:jeffmace
ID: 7127756
Worked Perfectly..

Thank you so much,
Jeff
0
Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

 
LVL 5

Expert Comment

by:CFXPERT
ID: 7127764
Hey not a problem glad I could help ya out.
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7127765
Hey not a problem glad I could help ya out.
0
 

Expert Comment

by:Raghunandan44
ID: 13246364
Hi,

I have to do the same thing but with a little variation. This is outline of my code.

This is the pop-window
<html>
<head>
<title>Pop-Up to insert new employee</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>      
<cfif not isdefined("form.submit")>
<form action="act_cntrEmployees.cfm" method="post">

<!--- Here I have all the textboxes for the user to fill the reqd information --->

<INPUT type="submit" NAME="submit" VALUE="submit">

</form>
<cfelse>

<!--- SQL Query to insert the record --->

</cfif>

In the parent page I have listed all the employees and provided and button to open a pop-up for inserting a new employee.

I want to update the database with what user have entered, close the pop-window and then refresh the parent.

Any help would be appreciated.
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Service "nameserver" appears to be down 4 534
X-Frame-Options - click-jacking 7 56
htacces rewrite to send all traffic to https://www. 7 55
Website being blocked? 3 122
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now