Quote from
Gaev on July 1, 2023, 5:47 pm
@patrik
allows access to the different elements, a bit like the $ in JQuery, both for HTML and CSS attributes
Ex : NEO("MyText","visible") = true
Ex : w = NEO("MyButton","width")
According to this Help file page ... https://webhelp.visualneo.com/CallingactionsfromJavaScript.html ... you can do the following ...
AlertBox "Hi!" "This is a message from VisualNEO Web" ""
BeginJS
$scope.AlertBox("Hi!","This is a message from JavaScript","");
EndJS
BeginJS
neo.AlertBox("Hi!","This is a message from JavaScript","");
EndJS
You can call your own NeoScript subroutines from JavaScript using the same syntax:
BeginJS
$scope.subroutineName(param);
EndJS
or
BeginJS
neo.subroutineName(param);
EndJS
Since what you are asking for is available with the neoScript commands ...
SetObjectAttribute
GetObjectAttribute
... could your idea be fulfilled by deploying the $scope facility ? ... if so, the heavy lifting could be placed inside a Javascript function that could then be called from your Javascipt with just one line of code.
allows access to the different elements, a bit like the $ in JQuery, both for HTML and CSS attributes
Ex : NEO("MyText","visible") = true
Ex : w = NEO("MyButton","width")
AlertBox "Hi!" "This is a message from VisualNEO Web" ""
BeginJS
$scope.AlertBox("Hi!","This is a message from JavaScript","");
EndJS
BeginJS
neo.AlertBox("Hi!","This is a message from JavaScript","");
EndJS
You can call your own NeoScript subroutines from JavaScript using the same syntax:
BeginJS
$scope.subroutineName(param);
EndJS
or
BeginJS
neo.subroutineName(param);
EndJS
Since what you are asking for is available with the neoScript commands ...
SetObjectAttribute
GetObjectAttribute
... could your idea be fulfilled by deploying the $scope facility ? ... if so, the heavy lifting could be placed inside a Javascript function that could then be called from your Javascipt with just one line of code.
luishp has reacted to this post.