프로그램&DB/AJAX 썸네일형 리스트형 jQuery AJAX $.get() Method jQuery AJAX get() Method jQuery AJAX Methods Example Change the text of a div element using an AJAX GET request: $("button").click(function(){ $.get("demo_ajax_load.txt", function(result){ $("div").html(result); }); }); Try it yourself » Definition and Usage The get() method is used to perform an AJAX HTTP GET request. Syntax $(selector).get(url,data,success(response,status,xhr),dataType) Parame.. 더보기 jQuery AJAX ajaxSuccess() Method jQuery AJAX ajaxSuccess() Method jQuery AJAX Methods Example Trigger an alert box when an AJAX request completes successfully: $("div").ajaxSuccess(function(){ alert("AJAX request successfully completed"); }); Try it yourself » Definition and Usage The ajaxSuccess() method specifies a function to be run when an AJAX request is successfully completed. Syntax $(selector).ajaxSuccess(function(event.. 더보기 jQuery AJAX ajaxStop() Method jQuery AJAX ajaxStop() Method jQuery AJAX Methods Example Trigger an alert box when all AJAX requests have completed: $("div").ajaxStop(function(){ alert("All AJAX requests completed"); }); Try it yourself » Definition and Usage The ajaxStop() method specifies a function to run when ALL AJAX requests have completed. When an AJAX request completes, jQuery checks if there are any more AJAX request.. 더보기 jQuery AJAX ajaxStart() Method jQuery AJAX ajaxStart() Method jQuery AJAX Methods Example Show a "loading" indicator image when an AJAX request starts: $("div").ajaxStart(function(){ $(this).html(""); }); Try it yourself » Definition and Usage The ajaxStart() method specifies a function to be run when an AJAX request starts. Syntax $(selector).ajaxStart(function()) Parameter Description function() Required. Specifies the func.. 더보기 jQuery AJAX $.ajaxSetup() Method jQuery AJAX ajaxSetup() Method jQuery AJAX Methods Example Set the default URL and success function for all AJAX requests: $("button").click(function(){ $.ajaxSetup({url:"demo_ajax_load.txt",success:function(result){ $("div").html(result);}}); $.ajax(); }); Try it yourself » Definition and Usage The ajaxSetup() method sets default values for future AJAX requests. Syntax $.ajaxSetup({name:value, .. 더보기 jQuery AJAX ajaxSend() Method jQuery AJAX ajaxSend() Method jQuery AJAX Methods Example Change the content of a div element when an AJAX requests is about to be sent: $("div").ajaxSend(function(e,xhr,opt){ $(this).html("Requesting " + opt.url); }); Try it yourself » Definition and Usage The ajaxSend() method specifies a function to run when an AJAX requests is about to be sent. Syntax $(selector).ajaxSend(function(event,xhr,.. 더보기 jQuery AJAX ajaxError() Method jQuery AJAX ajaxError() Method jQuery AJAX Methods Example Trigger an alert box when an AJAX request fails: $("div").ajaxError(function(){ alert("An error occurred!"); }); Try it yourself » Definition and Usage The ajaxError() method specifies a function to be run when an AJAX request fails. Syntax $(selector).ajaxError(function(event,xhr,options,exc)) Parameter Description function(event,xhr,op.. 더보기 jQuery AJAX ajaxComplete() Method jQuery AJAX ajaxComplete() Method jQuery AJAX Methods Example Show a "loading" indicator image while an AJAX request is going on: $("#txt").ajaxStart(function(){ $("#wait").css("display","block"); }); $("#txt").ajaxComplete(function(){ $("#wait").css("display","none"); }); Try it yourself » Definition and Usage The ajaxComplete() method specifies a function to be run when an AJAX request complet.. 더보기 이전 1 2 3 다음