Welcome Guest, Not a member yet? Register   Sign In
Config updates via jQuery
#7

[eluser]vitoco[/eluser]
ajax call ( unless you set it otherwise ) are async...so order of the returned data depends on the server, when you make

Code:
$('#status_holder').load('/admin/cp_ajax/status_return_status');
      $('#status_actions').load('/admin/cp_ajax/status_return_actions');

both call are made in the "same time"..so the second doesn't wait for the first to finish, to do that use always callbacks

jquery load description

Code:
$('#status_holder').load(
        '/admin/cp_ajax/status_return_status' ,
        {} ,
        function( responseText, textStatus, XMLHttpRequest )
        {
            $('#status_actions').load('/admin/cp_ajax/status_return_actions');
        }
    );

Saludos


Messages In This Thread
Config updates via jQuery - by El Forum - 10-29-2010, 10:14 AM
Config updates via jQuery - by El Forum - 10-29-2010, 12:26 PM
Config updates via jQuery - by El Forum - 11-09-2010, 02:31 AM
Config updates via jQuery - by El Forum - 11-23-2010, 11:39 AM
Config updates via jQuery - by El Forum - 11-23-2010, 11:50 AM
Config updates via jQuery - by El Forum - 11-23-2010, 12:18 PM
Config updates via jQuery - by El Forum - 11-23-2010, 03:05 PM
Config updates via jQuery - by El Forum - 11-24-2010, 03:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB