Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Start script and send client elsewhere.

Status
Not open for further replies.

Esoteric

ISP
Feb 10, 2001
93
US
I want to start a script and redirect the client to another page while the server executes.

Example: Create a file and emails it to the client, don't want client to have to wait for the server to complete before the pages gets refreshed. This way the client can do other things while the server takes all the time it needs to execute said script.
 
I think that the best way to do that is to have the new page call up a pop-under window that executes the code....

newPage.asp

<script>
function process(){
window.open(&quot;process.asp&quot;,&quot;newWin&quot;,&quot;height=10,width=10&quot;)
self.focus()
}
</script>
<body onLoad=&quot;process()&quot;>

your page goes here




process.asp

<%
'execute your code here
%>
<script>
self.close()
</script> -- Just trying to help...
[wolf]<--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top