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 & lt;% = a%> , I get a warning with this text page.asp?

Some id = 1 and other = 29 '"

or

  var urlParamsJS =' <% = b%> ' 

Select one that fits better with your code.

If you have any variables (which you can call & lt;% = b% Gt; ), the value should be quoted, if the string value is to be singed for it.

>

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -