Sunday, 15 January 2012

jquery mobile panel dynamic content -



jquery mobile panel dynamic content -

i'm attempting utilize new jqm panels ( http://jquerymobile.com/test/docs/panels/index.html ) follows.

i'm creating listview charity names mysql query. want click on charity name open panel have more info (from same query) on charity. jqm documentation states:

when dynamically add together content panel or create hidden content visible while panel open, have trigger updatelayout event on panel. $( "#mypanel" ).trigger( "updatelayout" );

however don't know how utilize - go?

you'd need provide code more specific answer, each item in list phone call function when clicked. function write charity's info panel , trigger updatelayout. this:

function showcharityinfo() { var charityinfo = "all charity...."; $('#mypanel').html(charityinfo); $('#mypanel').trigger('updatelayout'); }

jquery jquery-mobile panel

No comments:

Post a Comment