Passing Page Parameters
Passing Page Parameters
What is the most efficient way to pass one or many data values between two jquery mobile pages? Does anyone have a working example using alpha 3 with 1.5 (or 1.4.4) jquery core? I cannot get the beforepageshow event to properly fire after listview click using the following code.
I am using a listview (with data-filter=true) search with data-identity set. When I click the the item, it returns the correct value via alert. However, I cannot get the "beforepageshow" to properly work in item selection page after changePage.
I would also like to invoke the ItemMasterSelection page as a dialog. However, I do see an option in the documentation.
#ItemMaster page:
$("#ItemMaster ul.locationparts a").click(function (e) {
var ItemVal = $(this).data('identity');
$.mobile.changePage("ItemMasterSelection.html", { "sel": +ItemVal }, "pop", true, true);
});
#ItemMasterSelection page:
$("#ItemMasterSelection").bind("beforepageshow", function(e args) {
var selvar = args.sel;
alert("beforepageshow works:" + selvar);
I am certain that something wrong. Can someone help me out?