Solved

Open Child Window/Insert Information/Refresh Parent window

Posted on 2002-07-03
6
266 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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