andyhill Posted November 29, 2017 Share Posted November 29, 2017 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 More sharing options...
Sherzod Posted November 30, 2017 Share Posted November 30, 2017 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 More sharing options...
andyhill Posted November 30, 2017 Author Share Posted November 30, 2017 thanks Link to comment Share on other sites More sharing options...
Recommended Posts