VisualNeoWeb suggestions - Page 2 - Forum

Forum Navigation
You need to log in to create posts and topics.

VisualNeoWeb suggestions

PreviousPage 2 of 2
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.
luishp has reacted to this post.
luishp

Thank you for this answer :)

The concern is that doing calculations with VN is not very easy. Ditto if we have to write a not-short algorithm (ie path finder). And the VN code doesn't really like functions... The ultimate would be for the language to be outright JS.

The GetObjectAttribute is not a function, the last parameter is the return value.
Between GetObjectAttribut("obj","att",[res]) and res=GetObjectAttribut("obj","att"), what do you prefer ?

PreviousPage 2 of 2