Jump to content
uniGUI Discussion Forums
Sign in to follow this  
andyhill

Trying to update Label - Please advise

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;');

Share this post


Link to post
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,

Share this post


Link to post
Share on other sites
Sign in to follow this  

×