JQTouch issue with form submit
in jQuery Mobile
•
11 years ago
Hi
I am getting issues in my ASP.Net application when used JQTouch. The following is the description for the same.
We have a login page, after clicking the login button user will be taken to search facility page. In search page, I have 2 combo boxes (form and subform) and search button. On selection of a form, subforms will be loaded in subform combobox. On click of Search button, it will display some results for the selected form and subform and an anchor button exists in the results page to go back to the search page again. On click of the anchor button, it is taking us to the search page. Now, if i select any form in the form combobox, it is always taking the previously selected form and getting the subforms for that form(could see while debugging the code) but again they are not appearing in the subforms combobox. So, its only working for the first time and not working for the second time onwards. But if we exclude the JQTouch scripts and css files from the aspx page, it is working fine.
After debugging we got to know that the same div containing teh form controls is there at the client side twice.We got to know from the following javascript code after the search page is loaded again.var divs = document.getElementsByName("searchform");
alert(divs.length);// it is giving result 2, where as it gave 1 for the first time opened just after login.
So, the controls(comboboxes) that are appearing on the UI for the user and the controls that we are getting when we access them in the javascript are different.
So, can some one please let me know how do we fix this? (OR) how to make this as a fresh server call, instead of an ajax call on click of back to search in results page.
for the back to search hyperlink, the following is the snippet we have used
<a href="<%= ResolveUrl("~/Search.aspx/Index") %>" class="swap">Back to Search </a>
So, some one please let me know what could be done for this issue.
Thanks in advance
1