I use the jquery-1.3.2-vsdoc2.js but when i debugged the code,Visual Studio said Microsoft JScript Run-time error: 'f' undefined, and VS jump to the code
jQuery.fn["ajaxStart"] = function(callback) { /// <summary> /// Attach a function to be executed whenever an AJAX request begins and there is none already active. This is an Ajax Event. /// </summary> /// <param name="callback" type="Function">The function to execute.</ param> /// <returns type="jQuery" /> return this.bind("ajaxStart", f); //here throw the error }; and I have the following jquery script: <script type="text/javascript"> $(function() { GetTagedPage(0); $("#loading") .ajaxStart(function() { $(this).show(); }).ajaxStop(function() { $(this).hide(); }); }); function GetTagedPage(tagedPage) { $.ajax({ url: "DoData.ashx?page=" + tagedPage, type: "json", success: function(data) { var tmp = eval(data); var pageCount = tmp.PageCount; tmp = tmp.List $("tbody tr").remove(); $("#ul_page li").remove(); $.each(tmp, function(i) { var row; row = "<tr><td>" + tmp[i].Name + "</td><td>" + tmp[i].ID + "</td>"; $("#tb").append(row).filter("tbody tr:even").addClass("aa"); }); if (pageCount > 10) { pageCount = 10; } for (var i = 1; i <= pageCount; i++) { $("<li><a href='#'>" + i + "</a></ li>").appendTo("#ul_page").click(function() { GetTagedPage(Number (this.firstChild.innerText)); }); } } }); }; </script> and this is my html code <body> <form id="form1" runat="server"> <div> <table id="tb"> <thead> <tr> <th> Name </th> <th> No. </th> </tr> </thead> <tbody> </tbody> </table> <ul id="ul_page"> </ul> </div> <div id="loading"> </div> </form> </body> thx for your reading my poor English.....orz