Solved

Open Child Window/Insert Information/Refresh Parent window

Posted on 2002-07-03
6
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

634 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