jquery - Ajax on success not firing in mozilla -
i have written ajax method
if(document.url.indexof('lid')!=-1) { $.ajax ({ type: "post", url: "../dl/lecture_list.aspx/gettitle", data: '{lectureid:"'+document.url.substring(document.url.indexof("=")+1)+'"}', contenttype: "application/json; charset=utf-8", datatype: "json", success: successhandler }); function successhandler(data){ var title = data.d; add_anchor(title); } }
this code working fine in chrome in mozilla firefox reflexing error,
referenceerror: successhandler not defined
Comments
Post a Comment