Topic: XAJAX ····(data)····> PHP
JS (JavaScript) is synchronous and asynchronous. PHP is synchronous. Ok.
PHP is executed by the server. JS is executed by the client. Ok.
PHP executed first. JS executed after. Ok.
Well. Is possible that I send data with XAJAX and PHP get it?
PROBLEM: I would like to know that an user (a client that load my web site) has javascript activated or not (ALERT! JS activated and JS supported are not the same)
I thank to send a variable (data) with XAJAX and PHP gets it.
client server
----------- ------------
- XAJAX - ············> - PHP -
----------- ------------
XAJAX sends a string, for example, "JS is activated", and PHP gets this string with a variable, and I process this result: launch a page performed for javascript or launch a page performed for without javascript.
The problem is when the page loads, PHP is executed one time. When all PHP code finish execution, if XAJAX (asynchronous JS mode) sends data, ¿how catch this data?
All of that I previous write in this post summarizes in one question: PHP has a asynchronous mode?
Thanks for all. Greetings.
Last edited by vieiras (2009-08-06 6:54:07 PM)