목록Ajax (3)
FILife
.post()나 .get() 대신 .ajax()를 사용하여 property에 async:false 를 주는 수도 있지만, 애초에 jQuery의 ajaxSetup 옵션을 변경하여 처리할수도 있다고 한다. You can put the JQuery's AJAX setup in synchronous mode by calling jQuery.ajaxSetup({async:false}); and then perform your ajax calls using jQuery.get( ... ); then just turning it on again once jQuery.ajaxSetup({async:true}); I guess it works out the same thing as suggested by @Adam bu..
ajax(jquery) 무한 스크롤 스크롤 끝에 가면 다음 데이터 로드| PHP 2010/07/06 15:35 Posted by 탱군 wrd-scroll.zip 구조설명: 컨텐츠 페이지 구조 content content 로딩중 이미지 보여주는 부분과 실제 데이터 가져오는 부분 function lastPostFunc() { $('div#lastPostsLoader').html(''); $.post("scroll.asp?action=getLastPosts&lastID=" + $(".wrdLatest:last").attr("id"), function(data){ if (data != "") { $(".wrdLatest:last").after(data); } $('div#lastPostsLoader').empt..