Tuesday, 15 February 2011

javascript - Id of previous pages from current pages -



javascript - Id of previous pages from current pages -

in application navigate 1 pages using jquery mobile. problem that, on 3rd page want know id of parent page(or first page). possible in jquery mobile or javascript. if yes, how perform this.

thanks in advance. help appreciated.

this should used id of previous page.

$(document).on('pagebeforeshow', '#second', function(e, data){ alert(data.prevpage.attr('id')); });

jsfiddle example: http://jsfiddle.net/gajotres/npelf/

more solution , few others (with examples) can found in article, transparent personal blog. or can find here. in both cases search chapter: data/parameters manipulation between page transitions.

javascript html5 jquery-mobile

No comments:

Post a Comment