itemsPerPage = 50; curPos = 0; function browseXML() { resultSetLength = $("session",xmlDataSet).length; strToAppend = ""; $("session",xmlDataSet).each(function(i) { var name = $(this).find('sessionName').text(); var id = $(this).find('sessionid').text(); var chair = $(this).find('sessionChair').text(); var venue = $(this).find('venueName').text() var level = $(this).find("eventAttribute[name=level]").text() var start = $(this).find('sessionStartTime').text() var end = $(this).find('sessionEndTime').text() var startnew = Date.parse(start).toString('dddd, d MMMM | h:mm tt'); var endnew = Date.parse(end).toString('h:mm tt'); if (id == "65") { strToAppend += "

日本語による論文発表セッション

" + startnew + " - " + endnew + " | " + venue +"

Session Chair

" + chair + "

"; } else { strToAppend += "

" + name + "

" + startnew + " - " + endnew + " | " + venue +"

Session Chair

" + chair + "

"; } }); $("event",xmlDataSet).each(function(i) { var event = $(this).find("eventAttribute[name=event_id]").text() var subsection = $(this).find("eventAttribute[name=event_type]:first").text() var title = $(this).find("eventAttribute[name=title]").text() var summary = $(this).find("eventAttribute[name=summary]").text() var affil = $(this).find("eventAttribute[name=namesandaffiliations]").text() var tog = $(this).find("eventAttribute[name=tog]").text(); var img = $(this).find('eventImageThumbnail').text(); strToAppend += "
"+ tog +"

" + title + "

" + summary + "

" + affil + "
"; }); $("#content-update-item").html(strToAppend); $("#content-update-item .single-paper").tsort("h6.tog"); $(".single-paper").append("
"); };