jQuery mobile: how to load a detailpage from a listview -


i'm using singe page concept jquery mobile. create dynamic listview so:

var resultitems = '<ul data-role="listview">'; (i = 0; < 10; i++) { if (msg.hotspots[i] != null) { resultitems += '<li><a href="acura.html"><img src="' + msg.hotspots[i].imageurl + '" />' + msg.hotspots[i].title + '</a></li>'; } } resultitems += '</ul>'; $('#results').html(resultitems); $('#results').trigger("create");     

as can see have hyperlink acura.html now. want activate subpage #detailpage , load details of id of clicked item in listview. it's no problem adding item id link, don't know link should , how read id page #detailpage.

thanks!

what asking how pass data data 1 page in jquery mobile, in case want append id of item , in pageshow event of acura.html based on that.

there few questions here on deal (passing data) example may want @ 1 how pass button text page?


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -