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

javascript and asp

Status
Not open for further replies.

kjoost001

Programmer
Apr 11, 2002
19
0
0
US
I would like to call an asp page via Javascript, but i dont want the asp page to appear, i just want the actions on the asp page to be executed. So, when the user clicks on the button, it will execute the asp page, but not go there.

thanks
 
I'm not sure exactly what you want to do here, but you could send the user back to the current page using the following:

<html>
<head>
<script language=&quot;JavaScript&quot;>
history.go(-1);
</script>
</head>
<body>
</body>
</html>
 
what i was planning on doing....in short is...

1. have the user click a submit button
2. on submit, execute an existing .asp page (but dont have the .asp page show up)
3. after the .asp page has been executed, then go to another .html page.

I was able to use this:
&quot;window.location =&quot;
to go to the other .html page, but i dont know how to make the call to execute an .asp page....

IS there something like document.frm1.action = &quot;.asp&quot;

??
Thanks!

 
After your asp page performs its functions, then use Response.Redirect to go to the next page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top