Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detect change variable
#1
In template in have javascript variable 
var MyIndex=1;

Javascript change MyIndex=2;

How do intraweb I let me change the variable? Trigger! EventListener!
Reply
#2
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
Reply
#3
(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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)