成功的Ajax没有在mozilla中解雇

时间:2013-05-14 06:00:54

标签: jquery asp.net

我写了一个ajax方法

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);
       }
}

此代码在chrome中工作正常但在mozilla firefox reflexing错误中

ReferenceError: SuccessHandler is not defined

0 个答案:

没有答案