vbscript - How do you use Classic ASP string in client side Javascript? -
I have the asp classic page and when I try to use the ASP variable in the javascript code, it's only numbers It allows, when it sends an error in a string variable:
and lt;% dim a, ba = "11322353464767875689" b = " Some ID = 1 and one more = 2 "% & Gt; & Lt; Script language = 'javascript' & gt; Var urlParamsJS = & lt;% = b% & gt; Warning (urlParamsJS); Var params = 'dependent = yes, directory = no, hotkeys = no, menu bar = no, personalbar = no, scrollbar = yes, status = no, titlebar = yes, toolbar = no'; Var Follol = 'Page ASP? P = 'URL Parameters JS Yr Ventaner 2 = Open (Fullural,' Other Tips', Parameters); Wcontainer2.resizeTo (900,470); Wcontainer2.moveTo (100,220); & Lt; / Script & gt; ");
when I use <% = b%>
then prints the screen ");
But when I Some id = 1 and other = 29 '" or Select one that fits better with your code. If you have any variables (which you can call & lt;% = a%>
, I get a warning with this text page.asp?
var urlParamsJS =' <% = b%> '
& lt;% = b% Gt;
), the value should be quoted, if the string value is to be singed for it.
Comments
Post a Comment