I\'ve been using jQuery for quite a while, and taking my first steps with jQuery Mobile.
I use index.html as the jQuery Mobile & design of my app, which calls the co
Here's what I came up to solve this for my page
$("#masterList").empty();
var listItems = "";
$.each(data.Messages, function (i, item)
{
listItems += "- "; // note the crazy quoting
listItems += "Test about the item";
}
$("#masterList").append(listItems);
For the detailPage I used the pageshow event handler to fetch the JSON object using the id and loaded the detail item based on the id in the detailId attribute - something like loadDetail($("#detailPage").attr("detailId")) and my loadDetail function did the rest.
Unfortunately this will break the URL strategy for jQuery mobile. Since the selected item is stored in the page itself - this is no good. I am going to try using an external link that is an HTML page and passing the id as an arg.