Posts: 132
Threads: 54
Joined: Mar 2019
Reputation:
1
02-11-2022, 12:57 PM
(This post was last modified: 02-11-2022, 01:00 PM by matija.)
In template in have javascript variable
var MyIndex=1;
Javascript change MyIndex=2;
How do intraweb I let me change the variable? Trigger! EventListener!
Posts: 2,267
Threads: 199
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
02-14-2022, 05:44 AM
(This post was last modified: 02-14-2022, 05:44 AM by Alexandre Machado.)
You mean from an IntraWeb event?
You need to add JavaScript to deal with it:
For instance, in a Callback call, you should use:
WebApplication.CallbackResponse.AddJavaScriptToExecute('MyIndex = 3');
This will be executed when the request is received by the browser.
If that's not what you want, please add more details to your question