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

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 -