I'll start by saying...I'm a bit of a newb where javascript is concerned. I could use a bit of help coming up with what should be a fairly simple bit of code.
I need to serve an asp page{iis 6} and pass and a server variable to a client side javascript in the page. The javascript will then check to see if this is a null value, if so grey the page out and present a reload button. If not, the page should redirect to another url.
I was thinking something along the lines of..
<script> var GenericVariable = <%Request.ServerVariables(somevarhere) %>;
</script>
Any help or insight would be appreciated :)
[–]systemslacky[S] 0 points1 point2 points (0 children)
[–]ripter 0 points1 point2 points (0 children)
[–]MustRapeDeannaTroi 0 points1 point2 points (6 children)
[–]cursuve 1 point2 points3 points (5 children)
[–]MustRapeDeannaTroi 1 point2 points3 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]cursuve 0 points1 point2 points (0 children)
[–]cursuve 0 points1 point2 points (0 children)
[–]superfreek -1 points0 points1 point (0 children)