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

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 -