Hi All!

I have this script:
$(document).ready(
  function(){
    $('#movies_menu').click(
      function(variable_main){
        
$.getJSON(\"\/movies\",function(moviesLibraryvar_800925333){$('#grid').html(moviesLibraryvar_800925333)});
        
$.getJSON(\"\/moviesbuttons\",function(moviesButtonsvar_2070324278){$('#buttons').html(moviesButtonsvar_2070324278)});
      
}).mouseout(function(){$('#movies_menu').removeClass(\"actionTitleMouseOver\");}).mouseover(function(){$('#movies_menu').addClass(\"actionTitleMouseOver\");})});


This script generated by php, but not not this is the point. I noticed
that the 2 getJSON method are started the same time, I can say these
calls are asynchronous calls. The problem is that in few case the
second and/or the third calls are depends on the calls which takes
place before because these or that call(s) set(s) up few things for
example php session.
The question: how can do that a call start that when the other call is finished?

I would like appreciate your kind help!

András

-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell

Reply via email to