Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change global variable in Javascript
#1
I have in my HTML template javascript global variable. How change this value?

var link="c:\temp\test1.pdf"; -> var link="c:\temp\test2.pdf"; 

Not work this: WebApplication.CallBackResponse.AddJavaScriptToExecute('link="c:\temp\test2.pdf";');
Reply
#2
Hi Matija, try:
Code:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA( 'var link="c:\temp\test2.pdf";' );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)