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 title = $(this).find('eventAttribute:eq(0)').text() var description = $(this).find('eventAttribute:eq(1)').text() var category = $(this).find('eventAttribute:eq(2)').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 + "

"; }); $("event:lt(" + parseInt(curPos + itemsPerPage) + ")",xmlDataSet).filter(":gt(" + parseInt(curPos - 1) + ")").each(function(i) { var title = $(this).find('eventAttribute:eq(0)').text() var description = $(this).find('eventAttribute:eq(1)').text() var category = $(this).find('eventAttribute:eq(2)').text() var authoraffil = $(this).find('eventAttribute:eq(3)').text() var level = $(this).find('eventAttribute:eq(4)').text() var bios = $(this).find('eventAttribute:eq(5)').text() var prerequisites = $(this).find('eventAttribute:eq(6)').text() strToAppend += "

LEVEL
" +level + "

" + description + "

PREREQUISITE
" + prerequisites + "

INSTRUCTORS
" + authoraffil + "
INSTRUCTOR INFORMATION
" + bios + "
"; strToAppend += ""; }); $("#content-update").html(strToAppend); }