I am currently using a form to navigate and pass form parameters from one one page to another and through a query string.
FirstPage
form code
<form name="input" action="new_page.html" method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
</form>
In the new page I am trying to get the query-string value using document.URL
. When the old page directs to the new page only the body contents of the new page are executed. The script files are not executed in the new page. Thus, I am not able to grab the query string values in the new page.
The process of passing parameters through form from one page to another works well for a regular HTML page, but does not work in case of jQuery Mobile.
Can any one suggest me a better way of passing parameters from one jQuery Mobile page to another. Any help is appreciated.