Link to home
Start Free TrialLog in
Avatar of Alex Lord
Alex Lord

asked on

How to tell ajax to wait and run functions in order

getDeals();

    setTimeout(function () {
        timelineController();
    }, 300);

    createDefaultProps();
    loadSocialData();
  
    
    loadLeadData();

    loadActData();
    getJr();
    getJrTimeline();

Open in new window


here is my list of functions which each has a ajax function, how do i tell these functions to wait until ajax is complete ? and run in order
ASKER CERTIFIED SOLUTION
Avatar of Zakaria Acharki
Zakaria Acharki
Flag of Morocco image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alex Lord
Alex Lord

ASKER

Thank you @Zakaria

this seemed to work as i needed it to
Glad I could help Alex.