I'm trying to give data to a internal page of a jquery mobile app with the Get method. The app is written as a one-page solution.
If a user clicks on send I change the href of the a for example to:
$("#send_loc").on("click", function () {
var shop = $("#shop").prev("form").find("input").val();
var city = $("#city").prev("form").find("input").val();
$('#send_loc').attr("href", "#search?city="+city+"&shop="+shop);
});
On the other side I try to catch the data with:
$( document ).on( "pageinit", "#search", function() {
var shop = getParameterByName("city");
var city_name = getParameterByName("shop");
});
but I get no results with this.
The reason why I try to do this is, to fix the data-rel="back" button.
If a user clicks on send I generate a listview with the search parameters city and shop. But after the user clicks on a entry of the listview and goes back again to the list view the list is empty. So thats why I try to save the parameters in the URL and create the listview with the URL parameters.
thanks for any help