currbook.chapterid ''34080602''; "34080602";</p>
currbook.sectionid ''0''; "";</p>
function savefootprintcount</p>
if !currbook.bookid currbook.bookid 0</p>
no bookid, wrong parametter</p>
retu;</p>
if count > 3</p>
retu;</p>
jquery.ajax</p>
url: domain.bookhostname "ajaxuser.footprint.save.dobookid533377&chapterid34080602§ionid0",</p>
data : currbook,</p>
processdata: false,</p>
datatype: "jsonp",</p>
suesfunctiondata</p>
ifdata && data.length > 0</p>
suesdo nothing.</p>
el</p>
fail, will try 2 timethen end</p>
savefootprintcount 1;</p>
;</p>
jquerydocument.readyfunction</p>
var keyfootprint ''tempfootprint'';</p>
if window.user null window.user undefined</p>
if !currbook.bookid currbook.bookid 0 !currbook.chapterid currbook.chapterid 0</p>
no information</p>
el</p>
bookidchapteridsectionid</p>
var footprint cookieutil.getcookiekeyfootprint;</p>
if footprint</p>
var footprints footprint.split'''';</p>
var newidx;</p>
var newfootprints ;</p>
var start footprints.length > 10 footprints.length 9 : 0;</p>
for newidx 0; start < footprints.length; start</p>
var patt new regexpcurrbook.bookid '''';</p>
if patt.testfootprintsstart</p>
console.debugcurrbook.id '''' '', value:'' footprintsstart;</p>
continue;</p>
newfootprintsnewidx footprintsstart;</p>
footprint newfootprints.join'''';</p>
if footprint</p>
footprint '''';</p>
el</p>
footprint '''';</p>
footprint currbook.bookid;</p>