I am attempting to have a submit button execute an external batch program when it is clicked. I am sure it’s something simple, and I am missing it in the manual, but is there a simple way to go about this?
Thanks in advance,
Matthew
1 answer
Hi Matthew, maybe you can use the “Go to URL” action, and specify the URL like “file:///C:/test/test.bat”. The figure below shows an example.
http://oi60.tinypic.com/2yl4vbo.jpg
This question is now closed
Meanwhile, there are other ways to do this, but even more complex. For example, you can run a web server and wrap the bat file as a JSON API, so you can use the "Get JSON Object" action to call the API and trigger that bat file. It needs a web server to run, and I guess it is kind of overkill for your case.
In your case, it is better to use the "Get JSON Object" action and implemnet your .aspx page as a JSONP API.
You can take a look at: http://www.foreui.com/foreui/use-jsonp-api-in-foreui-plot/
Here is an example for PHP, and ASP should be very similar with it: http://www.foreui.com/forum/i_having_problems_with_foreui_and_php_trying_to_get_a_json_variable/