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 -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -