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
Post a Comment