Is the front-end JS send data to PHP processing, and then after processing to accept the return of PHP sent, no Ajax, there are other methods?
Thanks a lot!
Reply content:
Is the front-end JS send data to PHP processing, and then after processing to accept the return of PHP sent, no Ajax, there are other methods?
Thanks a lot!
-
iframe @ Childe said very clearly.
-
Flash
IFrame embedded in the form submitted to the PHP page and display the results, JS read the contents of the IFRAME page (note is non-cross-domain case). However, this is not the JS to send data. So the answer is no ...
PS. You give a very good word to the power-. -Estimation is the first question of this keyword ....
After @justjavac greatly reminds: There is also flash can. However, Silverlight since the flash solution can be recommended. Or something JAVA like that, maybe.
XMLHttpRequest scripted HTTP Rhino Book 18 chapter
JSONP. No matter if you step across the domain, it's all done. Non-Ajax
Https://github.com/hprose This can be cross-domain and easy to use.
You can use ANGULARJS (recommended, if you don't want to use Ajax), or use an IFRAME (not recommended), but if you don't want to use the front-end frame, Ajax is handy.