codepb/jquery-template

Call Back Function problem

altafhpatel opened this issue · 1 comments

Having a call back function issue

tpl.line = function (template,pclass,pid){
      $(".pageBuilder").loadTemplate("tmpl/"+template+".html",{content:pcontent,class:pclass,id:pid},{ append: true,complete:obj.complete}); 
    }

here is my complete function
obj.complete()

how to call a complete function in it

I have no idea where obj is defined. That should work, depending on how obj.complete is defined, however I'd recommend asking for help on Stack Overflow, and keeping this for issues.