Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change global variable in Javascript
#4
We need an example. If the variable is already declared in the browser page context, you can just update the value of the variable, example:


Code:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA( 'link="c:\temp\test2.pdf";' );


This will update a variable named "link" declared previously somehwere in your page. Any javascript code that makes use of this link variable will get the updated content
Reply


Messages In This Thread
Change global variable in Javascript - by matija - 07-19-2019, 07:54 AM
RE: Change global variable in Javascript - by Alexandre Machado - 09-14-2021, 06:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)