04-27-2011, 02:46 AM
[eluser]toopay[/eluser]
What make you confused? Clearly, the log say that the HTTP request is must be done synchronous, thats why you failed with this code
HTTP is Synchronous: a client issues a request and waits for the corresponding response before anything else is done, while Asynchronous HTTP Request Processing is a technique that allows you to process a single HTTP request using non-blocking I/O(input/output), and it does not wait for the response but instead continues any further necessary processing!
What make you confused? Clearly, the log say that the HTTP request is must be done synchronous, thats why you failed with this code
Code:
// This not work
xmlhttp.open('GET', '<?php echo base_url(); ?>languagesetup/setlanguage/english', true);
// This should work
xmlhttp.open('GET', '<?php echo base_url(); ?>languagesetup/setlanguage/english', false);
HTTP is Synchronous: a client issues a request and waits for the corresponding response before anything else is done, while Asynchronous HTTP Request Processing is a technique that allows you to process a single HTTP request using non-blocking I/O(input/output), and it does not wait for the response but instead continues any further necessary processing!