itemsPerPage = 50; curPos = 0; function browseXML() { resultSetLength = $("session",xmlDataSet).length; strToAppend = ""; $("session:lt(" + parseInt(curPos + itemsPerPage) + ")",xmlDataSet).filter(":gt(" + parseInt(curPos - 1) + ")").each(function(i) { var id = $(this).find('sessionid').text() var name = $(this).find('sessionName').text() var chair = $(this).find('sessionChair').text() var venue = $(this).find('venueName').text() var description = $(this).find('[@name="description"]').text() var category = $(this).find('[@name="category"]').eq(0).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'); // var startnew = Date.parse(start).format('%A, %e %B | g:%M a'); // var endnew = Date.parse(end).format('g:%M a'); strToAppend += "

" + name + "

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

"; if (chair) { strToAppend += "Session Chair/Discussant
" + chair + "

" };}); $("event:lt(" + parseInt(curPos + itemsPerPage) + ")",xmlDataSet).filter(":gt(" + parseInt(curPos - 1) + ")").each(function(i) { var eventtitle = $(this).find('[@name="title"]').text() var description = $(this).find('[@name="description"]').text() var category = $(this).find('[@name="category"]').text() var moderator = $(this).find('[@name="moderator"]').text() var authoraffil = $(this).find('[@name="authoraffil"]').text() var level = $(this).find('[@name="level"]').text() var bios = $(this).find('[@name="bios"]').text() var prerequisites = $(this).find('[@name="prerequisites"]').text() strToAppend += "

" + eventtitle + "
" + description + "

"; if (authoraffil) { strToAppend += "AUTHORS
" + authoraffil + "
" }; strToAppend += ""; }); $("#content-update").html(strToAppend); }