Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
passing Delphi variable to javascript variable
#2
I need a little more context. You can just declare a variable in Javascript using AddJavaScriptToExecute(), and then use it anywhere.

Like: WebApplication.CallbackResponse.AddJavaScriptToExecute('var myvariable = "abcd"');

and it will be available while this page is active.
Reply


Messages In This Thread
RE: passing Delphi variable to javascript variable - by Alexandre Machado - 08-16-2021, 09:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)