Fire method after completion of another method in javascript -


i have 2 javascript methods, lets say, function loaddatatotable() , function sortdataintable(). first method exposed internal mechanism, cannot edit wrote second one. so, call second method first method completed. how do ?

from limited information have provided, it's not complicated. call both functions 1 after other:

var response = loaddatatotable(); if(response == "desiredresponse"){     sortdataintable(); } 

does help?


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -