Okay, i have some code like this...
<html>
<head>
<title></title>
<script language="JavaScript" src="../lib/functions.js">
</head>
<body>
<%
Response.Redirect("../index"
%>
</body>
</html>
HERE IS THE DILEMMA... I need the javascript code to execute BEFORE the ASP code, meaning the users client browser must have already taken the code to execute my javascripts. After that, they will be redirected to another page. However, ASP codes are serverside and they ALWAYS execute before javascript code. So even with the code up there, ASP executes first, but the javascript never executes on the client side.
So my question is, how do i program it so that i can execute the javascript code. and then follow by the ASP code?
I have tried this using the Response.Buffer=TRUE and Response.Flush() around the JS code, but ASP gave me an error. I just need their clients to execute the JS code before i redirect them to another page.
How would i do that?
Thanks,
755
<html>
<head>
<title></title>
<script language="JavaScript" src="../lib/functions.js">
</head>
<body>
<%
Response.Redirect("../index"
%>
</body>
</html>
HERE IS THE DILEMMA... I need the javascript code to execute BEFORE the ASP code, meaning the users client browser must have already taken the code to execute my javascripts. After that, they will be redirected to another page. However, ASP codes are serverside and they ALWAYS execute before javascript code. So even with the code up there, ASP executes first, but the javascript never executes on the client side.
So my question is, how do i program it so that i can execute the javascript code. and then follow by the ASP code?
I have tried this using the Response.Buffer=TRUE and Response.Flush() around the JS code, but ASP gave me an error. I just need their clients to execute the JS code before i redirect them to another page.
How would i do that?
Thanks,
755