In template in have javascript variable
var MyIndex=1;
Javascript change MyIndex=2;
How do intraweb I let me change the variable? Trigger! EventListener!
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
(02-14-2022, 05:44 AM)Alexandre Machado Wrote: [ -> ]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
My case:
Create OpenLayers Map: Intraweb -> JS:='MyMap(markers);' -> AddToInitProc(JS);
if click to marker -> change var MyIndex in Javascript
I have to say now it has changed this MyIndex and return this variable?