Welcome Guest, Not a member yet? Register   Sign In
[Solved] Modifying sessions with Javascript
#11

[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
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!


Messages In This Thread
[Solved] Modifying sessions with Javascript - by El Forum - 04-21-2011, 03:15 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-24-2011, 10:45 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-25-2011, 09:48 PM
[Solved] Modifying sessions with Javascript - by El Forum - 04-26-2011, 12:21 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-26-2011, 01:08 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-26-2011, 01:18 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-26-2011, 01:56 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-26-2011, 06:23 PM
[Solved] Modifying sessions with Javascript - by El Forum - 04-27-2011, 12:42 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-27-2011, 01:36 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-27-2011, 02:46 AM
[Solved] Modifying sessions with Javascript - by El Forum - 04-27-2011, 03:35 AM
[Solved] Modifying sessions with Javascript - by El Forum - 07-16-2011, 02:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB