How to Send Action commands to a Neo WebApp from NeoWin (or NeoBook 5)? - Forum

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

How to Send Action commands to a Neo WebApp from NeoWin (or NeoBook 5)?

"WinExecAction" is the method to execute VisualNEO for Windows actions when a WebApp is embedded in a Browser Object inside VisualNEO Win... But what is the opposite method?

I want VisualNEO Win to send a "GotoNextPage" command to a VisualNEO WebApp embedded in a Browser Object.

What is the syntax for that?

Thank you.

 

 

Hi @fkapnist.

You should use BrowserExecScript VisualNEO Win Command to execute any JavaScript within an Embedded VisualNEO Web app:

https://winhelp.visualneo.com/Objects.html#BROWSEREXECSCRIPT

Remember to use NeoScriptToJS in your VisualNEO Web project under "App Events" menu. This way you can call any VisualNEO Web subroutine from JavaScript using: neosubroutine.yoursubrutine(param1,param2...)

The possibilites using this technique are endless.

Best regards.

I simply want "GotoNextPage" in VisualNEO Web.

What is the JavaScript for that?  Can you give me a working example please?

-------------

Is something like this what you mean?

BrowserExecScript "WebBrowser1" "neosubroutine.MyNextPage" "JScript"

Where does the NeoScriptToJS  go?

----------

Thanks

 

I put the "NeoScriptToJS" statement in my App Events  tab.

I created a subroutine called MyNextPage containing the "GotoNextPage" action command

and now this works OK :

BrowserExecScript "WebBrowser1" "neosubroutine.MyNextPage()" "JScript"

 

 

 

That's it! :)