How to execute PHP script while reading javascript?
toplisek
12:17 pm on Jun 10, 2012 (gmt 0)
I have to set javascript and execute some small PHP script on another server. How to do this actually in the correct way? Are there any obstacles to do this. I assume Javascript will be enabled.
g1smd
12:52 pm on Jun 10, 2012 (gmt 0)
If js is not enabled it will need to degrade gracefully and provide valid output or suitable error message.
toplisek
1:31 pm on Jun 10, 2012 (gmt 0)
If js is enabled how to do it?
daveVk
3:31 am on Jun 11, 2012 (gmt 0)
Depends on what you need to do with reply from php script. If you are not interested in reply. then using small scripts url as source of hidden iframe will suffice(no js required).
Otherwise as server is probably on different domain then containing page, Ajax with jsonp or similar needed.