Jump to content

Recommended Posts

Posted

Hello,

Is it possible to get values which are handled from javascript code.

For Example :

In Pascal I do the following :

  MyButton.JSInterface.JSProperty('MyProperty', ['Test']);

In the Click Event of ExtEvents I'm changing the value like :

function click(sender, e, eOpts)
{
  sender.MyProperty = 'Test 2';

}
 

Now I want in my Pascal code return the changed Value for MyProperty. Is this possible?

Best wishes

Bernhard


 

Posted

Hi, You can try this :

 function click(sender, e, eOpts)
{
  sender.MyProperty = 'Test 2';
  ajaxRequest(sender,"myevent", {myproperty:sender.MyProperty});
}

and in Button.OnAjaxEvent

if EventName='myevent' then
  // params['myproperty'].asstring

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...