Javascript Server to PHP - its this possible with Exeoutput?

Hi I discovered the EXEOutput website and I think this is the answer to my dreams to create desktop applications for windows without having to learn a more traditional language like .net or c++.

But I really hope that exeoutput can make our apps work more like a traditional GUI application. is it currently possible to call JavaScript functions on the browser directly from PHP. What I want to do is create an Ajax application that can send a request to run a PHP script and receive data back to any JavaScript function I may have coded multiple times from that PHP script in one execution.

So for instance I might have a loop running in PHP and I will send some JSON data to a JavaScript function on each iteration of that loop. the JavaScript function is also able to return a result of the function to the PHP loop.

The point is to have PHP script execution in the background but regularly updating the page based on things happening in PHP without having to do this the traditional way by making a request and loading PHP and any framework just to get a little bit of data to update the page and then load the framework again.

This new way I can have PHP act as the controller and model and JavaScript and browser is the view in a more traditional application sense. this way our applications can do more traditional App things.

With this functionality if I was processing images I could send info back to JavaScript on the status of the image processing with accurate progress bars and all kind of things.

Is there a bridge from PHP back to JavaScript?

Hi after looking at your docs it seams that I maybe able to do this with the HEscript function ExecuteHTMLScript…
does this work in chromium and can I call this from an Ajax requested PHP execution to Execute scripts in the current loaded browser page?
Thanks

You could for instance use repeated AJAX calls to PHP scripts to find out about image processing… There is no current way to execute JavaScript from PHP, except what you found: you could call an HEScript script from PHP that would then invoke the JS function with ExecuteHTMLScript. I didn’t test this so I can’t tell you whether it will work or not.

Hi thanks for getting back to me.
Ok I will test it my self I’ve just installed the trail version of ExeOutput so will see if it works. if it does then I think it would be better that than loading php and the php framework that im using in quick succession to find out the status of other things happening. I could just send a process finished message as a HEScript function to JavaScript.

Now lets just hope it works…