How to I get an ASP (VBscript) variable into some Jquery code ?

Question:

Hi,

I’ve got some ASP code using VBScript and need to pass over a variable into some JQuery.

However add this does is just pass the exact code out to the browser. it does render this server side, so the contents of the variable are not displayed.

Any clues on how to pass the content in please?
Code Snippet:

Dim gDelegatePrice : gDelegatePrice = 1295
…..
$(“#rowPrice”).html(“<p>Total Price: <%=gDelegatePrice%></p>”);
…..

Solution:

Correct, since it is a js file, it will not execute.
You will have to pass your information through via javascript.

The only way to execute is to have a .asp extension
People are making HTML file execute like asp by changing the information
On the server itself, which I am pretty sure can be done with any file
But I would not recommend trying it with a .JS file.

Good Luck
Carrzkiss

Tags: · · ·
digg delicious stumbleupon technorati Google live facebook Sphinn Mixx newsvine reddit yahoomyweb
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...