I have an add-event button that when clicked opens a new window with a few fields to fill out.
After hitting the submit button in the popup
I need to do the following:
1) Insert the information on the current server.
2) Insert the information on a remote server.
3) Refresh the parent window.
4) Close the child window.
This is the code I using now but it doesn't refresh the parent window.
--------------
<%
qIncident = "INSERT INTO myTable(Fields) Values(Values)"
adoDataConn.Execute(qIncident)
qSIncident = "SELECT myField FROM myTable"
SET EventID = adoDataConn.Execute(qIncident)
myString = "
Response.Redirect(myString)
%>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
opener.location.reload();
window.close();
</SCRIPT>
--------------
Thanks,
Dave
After hitting the submit button in the popup
I need to do the following:
1) Insert the information on the current server.
2) Insert the information on a remote server.
3) Refresh the parent window.
4) Close the child window.
This is the code I using now but it doesn't refresh the parent window.
--------------
<%
qIncident = "INSERT INTO myTable(Fields) Values(Values)"
adoDataConn.Execute(qIncident)
qSIncident = "SELECT myField FROM myTable"
SET EventID = adoDataConn.Execute(qIncident)
myString = "
Response.Redirect(myString)
%>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
opener.location.reload();
window.close();
</SCRIPT>
--------------
Thanks,
Dave