How to pass a variable out of a JavaScript function.

How to pass a variable out of a JavaScript function.

  

Hi,

Is it possible to pass a variable from a JavaScript function to a Web Screen?


Solution

Hi Benjamin,

You can do that by creating a local variable associated to an input box for example, and then with JavaScript  change the value of that input. Then you just need to use the AjaxRefresh widget to get your js value at your local variable.

Hope it can help you.

Samuel

Solution

Samuel M. wrote:

Hi Benjamin,

You can do that by creating a local variable associated to an input box for example, and then with JavaScript  change the value of that input. Then you just need to use the AjaxRefresh widget to get your js value at your local variable.

Hope it can help you.

Samuel

Hi Sam, 

Do you have a sample code on this?


Thanks.

Christopher