Hello,
I have some jscript which checks the browser version. I now want to add some ASP code (<%response.redirect "newpage.htm"%>).
How do I do this?? I dont know Jscript AT ALL - "stole" the code somewhere!!
Thanks,
T
Printable View
Hello,
I have some jscript which checks the browser version. I now want to add some ASP code (<%response.redirect "newpage.htm"%>).
How do I do this?? I dont know Jscript AT ALL - "stole" the code somewhere!!
Thanks,
T
You can use the JScript syntax Response.Redirect ( 'mypage.asp' ); in ASP.
But this will onlly work if your languest is set to JavaScript or JScript.
you could just check for the browser version using asp, and keep all the asp together...
Thanks Guys,
Sail3005,
This seems like the most obvious solution. Could you give me some example code for this??
Thanks,
T
Turf, are you checking on version(4/5/5.5) or type (ie/ns)?
i think that this should do the trick...
Code:Request.ServerVariables("http_user_agent")
Or create an instance of the BrowsCaps Object.
What is that?
The Browser Capabilities component.. comes with IIS....
Hmmm...I have not heard of that before, i will have to look into it.
Seems like it is a bit of a tricky one - or not??
Monte96,
All I need to know is Type (ie or ns), not worried about version.
T.
The code i gave you should work then...
Do it all in asp
http://www.asp101.com/articles/wrox/3218/32180402.asp
woul post you some of my code samples but Boss would have a heart attack i he seen that I detect IE and it is labled as good and everything else is considered "CRAP"
actually that is the article I used to develope a excelent system plu make sure your browser has a good browsercap.inin file that is up to date too
Hi BOUND4DOOM,
Thanks for the code - it works great!!
T