Tsuji: Without the outer quotes, the script simply fails (I don't get any error message, but neither does it successfully set the value of myip; If I place a line
alert("myip is " + myip);
immediately after the "myip = " line, it never executes.
On the other hand, if I use the outer quotes...
Tsuji: I have already tried surrounding the <% %> call with single quotes (two-sets of double quotes will not create a valid script, as I'm sure you are aware). I also tried double-quotes on the outside, and single-quotes around 'LOCAL_ADDR'. I both cases, myip is set to the literal string...
I'm trying to do something that is (probably) VERY easy, but I sure can't figure it out! I want to create a user link on an aspx webpage for a user to click, and when they click it, depending on what their local address is, I want to open either of two webpages.
I believe I probably need to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.