Link to home
Start Free TrialLog in
Avatar of jeffmace
jeffmace

asked on

Open Child Window/Insert Information/Refresh Parent window

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
ASKER CERTIFIED SOLUTION
Avatar of CFXPERT
CFXPERT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jeffmace
jeffmace

ASKER

Worked Perfectly... Thank you
Worked Perfectly..

Thank you so much,
Jeff
Hey not a problem glad I could help ya out.
Hey not a problem glad I could help ya out.
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.