Jump to content

Trying to update Label - Please advise


andyhill

Recommended Posts

Below does not work, I know just setting the Caption normally works but I am trying to understand why the JS version does not - please advise - thanks.

 

    UniSession.AddJS(LoginmForm.lblIP.JSName+'.Caption = ''Sleeping ...'' ;');

    UniSession.AddJS(LoginmForm.lblIP.JSName+'.RePaint;');
Link to comment
Share on other sites

Hi,

 

Sorry, For what purpose do you want to use UniSession.AddJS ?!

 

Use:

UnimLabel1.Caption := 'New Caption';

Or, for example:

UnimLabel1.JSInterface.JSCall('element.setHtml', ['NewCaption']);
UnimLabel1.JSInterface.JSCall('element.setText', ['NewCaption']);

...

 

Best regards,

Link to comment
Share on other sites

×
×
  • Create New...