Morning,
I've set up some revised control pages for tv control.
One button executes a client action to change the control page from "freesat" to "freeview" (to reflect different available channels) then completes a client action to execute some apple script to send the appropriate ir to change the tv input.
All works on iso.
However, when running from the web server, the control page is changed first (using client action - open control page) but the applescript isn't run. It does work if a new tab is open, but I want to avoid loads of tabs in safari.
Is the client action executed before the server action, thus the server action never executes as a new page has been loaded in the same tab? If so, can the priority be changed, i.e. execute the server actions (for the applescript) before executing the client action (to change the url)?
Can I open control page (in the same tab) from applescript to avoid using the server action, thus controlling the order in which the commands are executed? I'm not sure that would then work on iOS though would it?
I can't see any other posts on the subject.
Cheers
Mat