Darkwind BETAI'm Developer.

강좌게시판


[jquery] ajax에서 xml 리턴받아 처리하기.
흑풍 0 474 0 0 2010-12-22 10:41:01
자세한 설명은 생략한다.
$.ajax({
	type: 'get'
	, dataType: "xml"
	, url: "Service.aspx"
	, data: "arg=L
	, success: function(xml) {
		// xml 노드 null 확인
		if ($(xml).find("list").find("item").length > 0) {
			// totalitem 찾기
			var totitem = $(xml).find("totalitem").text();
			// item 노드 loop
			$(xml).find("list").find("item").each(function(idx) {              
				var idx = $(this).find("idx").text()
				var title = $(this).find("title").text()
				var content = $(this).find("content").text()
			});
		}          
	}
	, error: function(xhr, status, error) {alert(error); }
});

  목록     글쓰기  

번호 제   목 글쓴이 날짜 조회 추천수
11 [iOS] loadView, viewDidLoad .. [0] 흑풍 2011-02-28 270 0
10 [iOS] Property List 사용법 [0] 흑풍 2011-02-25 292 0
9 [MAC] FrontRow에서 avi및 자막을 볼 .. [0] 흑풍 2011-02-18 277 0
8 [Linux] vim 정리 [0] 흑풍 2011-02-07 267 0
7 [jquery] ajax에서 xml 리턴받아 처리하기. [0] 흑풍 2010-12-22 474 0
5 [jquery] checkbox 관련 [0] 흑풍 2010-12-13 488 0
4 우편번호 검색 API [1] 흑풍 2010-12-07 518 0
3 [PHP] ftp 함수모음 [0] 흑풍 2010-12-03 334 0
2 [PHP] preg_match 사용법 [0] 흑풍 2010-12-02 383 0
1 [Linux] find 명령어 완전 정복 가이드 [0] 흑풍 2010-11-29 344 0