jquery mobile page load after ajax post issue and anchor not

I have an jquery mobile page hosted in server and loaded in Android webview (as part of an android application). The page has a form which does an ajax post to an external webpage. Everything works well till then. After i get a response, i need to set the page to an external url.window.location.href = “url” //…

via Android Application Development » Search Results » ajax:

jquery mobile page load after ajax post issue and anchor not

I have an jquery mobile page hosted in server and loaded in Android webview (as part of an android application). The page has a form which does an ajax post to an external webpage. Everything works well till then. After i get a response, i need to set the page to an external url.
window.location.href = “url” //doesnot work for meOnly thing that works is getting the response data and setting to div as an html
$.post(“post url”,
form1Var.serialize(), function (data)
confirmationVar.html(data);

);To get the required external page as response, i had set that page as an iFrame in the response page. Now the issue here is none of the anchor tag in that page works.
Other option i tried is to show an internal Page
$.mobile.changePage(“#page2″);However the anchors placed inside there also are not redirecting.

Basically i need to show a page or even an inline page with links to external websites that could take the users to look at the site. Please note eerything works in Android webview and the same needs to work in iPhone webview and Windows Mobile Browser.
Please provide me a solution for the above issue.

For more info: jquery mobile page load after ajax post issue and anchor not

Android Application Development » Search Results » ajax

jquery mobile page load after ajax post issue and anchor not

Share this post:

Related Posts

Leave a Comment