Accessing nab.objects from js

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

Locked
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Accessing nab.objects from js

Post by HPW » Thu Aug 23, 2018 9:20 am

Hello,

Playing with my newlisp demo I set all Buttons to enabled=false
I want to enable them when all libs are ready loaded.

The Buttons Html.

Code: Select all

<button id="PushButton1" type="button"  class="btn btn-default [NAB.PushButton1_effect]" ng-style="NAB.PushButton1_style" ng-hide="NAB.PushButton1_hidden" ng-disabled="NAB.PushButton1_disabled" ng-click="PushButton1_click()">NewLispCall</button>
In my js function for the loading Event:

Code: Select all

var newlispButton = document.getElementById('PushButton1');

newlispButton.enabled = true;

But this does not work.
Is this the right way to Access the nab-object from JavaScript?

Regards
Hans-Peter

User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Accessing nab.objects from js

Post by HPW » Thu Aug 23, 2018 9:35 am

Hello,

After a look in main.js I get it:

Code: Select all

            $App.NAB.PushButton1_disabled=false;
            $App.NAB.PushButton2_disabled=false;
Hans-Peter

Locked