Understanding $.mobile object url methods
I'm trying to understand the usage of link methods.
Not used to working with a framework of any kind, a lot is confusing.
I realize (or think I do), for instance, that
$.mobile.changePage( "searchresults.php", {
type: "post",
data: $("form#search").serialize()
});
will transition to the searchresults.php page, transferring data from the form with an ID of "Search".
The question is how do I activate that code from a link?
And, by the way, since I used that as an example, the next question would be how do I un-serialize the data.