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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some Questions 1

Status
Not open for further replies.

Ablecken

Programmer
Jun 5, 2001
130
US
First Question

response.redirect
can you have the redirect show in a new window?

if you can can you make the page go back one page after the other page pops up?



Second Question

how would you time something? like in five seconds the download will start?

Thanx a lot guys
 

1) You could do your processing of the asp and then write out code to popup a window from client side

window.open(...)

2)look at javascript function setTimeout()

hth
cprey

 
I can do the redirect thing but is there any way to do the timing thing in ASP?
 
The senario I had was to have a page refresh until a
process was completed on the server. Sample below
that would request the page after 5 seconds.


I use the setTimeout in a <Body> tag to refresh the page.

<Body onload=&quot;setTimeout('myfunction();' , 5000)&quot;>


function myFunction()
{
location='my.asp';
}

You could do whatever you want in the function.

Hth
Corey
 
Ok,

I have a different url depending on what the asp comes up with how would i transfer the url to the javascript?
 
You could dynamicly (sp) write out the javascript.

dim sUrl
sUrl = &quot;
Response.Write &quot;<SCRIPT LANGUAGE=JAVASCRIPT>&quot;
Response.Write &quot;function myFunction()&quot;
Response.Write &quot;{ &quot;
Response.Write &quot; location='&quot; & sUrl & &quot;';&quot;
Response.Write &quot;}&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top