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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -