hpet
asked on
Closing window after successful data processing
Hi all,
At some point I open new window (window.open) for user to fill in some fields. When form submits data is proccessed by some asp. Is there a way I can close that window and return back to "opener" on successful data processing?
I guess this should be somehow done by processing asp?
-hpet
At some point I open new window (window.open) for user to fill in some fields. When form submits data is proccessed by some asp. Is there a way I can close that window and return back to "opener" on successful data processing?
I guess this should be somehow done by processing asp?
-hpet
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There are two ways.
1. In the asp page that updates the database - at the end use a page redirect:
<%Response.Redirect("page. asp")%>
2. In the asp page, you can close it with jscript below your asp:
<Html>
<Head>
<Script language="JavaScript">
window.close();
</Script>
</Head>
<Body>
</Body>
</Html>
Hope it helped.
1. In the asp page that updates the database - at the end use a page redirect:
<%Response.Redirect("page.
2. In the asp page, you can close it with jscript below your asp:
<Html>
<Head>
<Script language="JavaScript">
window.close();
</Script>
</Head>
<Body>
</Body>
</Html>
Hope it helped.
<!-- Your submit Page-->
<%
'' Collect all the data here....
'' Perform insert /update / delete operation
response.redirect("Previou sPage.asp" )
%>
this is better idea ..I agree with csheepers there is no need to go for javascript..
the best part is that you can even send message in query
string regarding success or faliure of operation and
print it in the previous page...
regards
Anup
<%
'' Collect all the data here....
'' Perform insert /update / delete operation
response.redirect("Previou
%>
this is better idea ..I agree with csheepers there is no need to go for javascript..
the best part is that you can even send message in query
string regarding success or faliure of operation and
print it in the previous page...
regards
Anup
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[points to drittich]
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
hongjun
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
[points to drittich]
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
hongjun
EE Cleanup Volunteer
As recommended
Chmod
Community Support Moderator @Experts Exchange
Chmod
Community Support Moderator @Experts Exchange
<%
ASP to process the data.
strClose = "onLoad=window.close();"
%>
<body <%= strClose %>>