Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Open Child Window/Insert Information/Refresh Parent window

Posted on 2002-07-03
6
Medium Priority
?
298 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 1200 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
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

 
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview

926 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