[jQuery] Re: %= myvarvalue % not working. Urgent. Please help

2008-12-10 Thread Richard D. Worth
Have your js file be an asp page, instead of a .js page, so it is parsed by
asp.

- Richard

On Wed, Dec 10, 2008 at 2:06 AM, JQueryProgrammer
[EMAIL PROTECTED]wrote:


 Ok. I found the problem. The issue is that I am writing my code in
 separate .js file where I am trying to access server side variables
 which is giving error. Can anyone please let me know how can I include
 or import an asp page in my .js file to access variables and constant
 values in my included js file.

 On Dec 10, 11:50 am, JQueryProgrammer [EMAIL PROTECTED] wrote:
  I am net able to access my ASP server side constant value in jquery
  file. I am trying as:
 
  var myvar = %= myvarvalue %;
 
  but when i put an alert on myvar, it shows %= myvarvalue % and not
  the value of myvarvalue. Can anyone pls help. Its really urgent.
  Thanks in advance



[jQuery] Re: %= myvarvalue % not working. Urgent. Please help

2008-12-09 Thread JQueryProgrammer

Ok. I found the problem. The issue is that I am writing my code in
separate .js file where I am trying to access server side variables
which is giving error. Can anyone please let me know how can I include
or import an asp page in my .js file to access variables and constant
values in my included js file.

On Dec 10, 11:50 am, JQueryProgrammer [EMAIL PROTECTED] wrote:
 I am net able to access my ASP server side constant value in jquery
 file. I am trying as:

 var myvar = %= myvarvalue %;

 but when i put an alert on myvar, it shows %= myvarvalue % and not
 the value of myvarvalue. Can anyone pls help. Its really urgent.
 Thanks in advance