jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

Ajax links not opening on Android 2.2 #1352

Closed anttears closed 13 years ago

anttears commented 13 years ago

USing jQuery1.5.2 and jQuery Mobile 1.0a4 I am seeing a never ending loading popup when clicking links. I am using a an android HTC Desire (v2.2) and sending my bundle up to Phonegap, then viewing the web page as an installed app.

<p><a href="Readingquestion1.html" data-role="button" data-theme="h">START</a></p>

If I revert to jQuery 1.4.3 and capute clicks on links then use changePage this works, but fails in later versions of jQuery.

Have just read on issue 991 that there may be a dataType issue - I'll have a look at this on Monday and report back. Ant

toddparker commented 13 years ago

It is the data type. We just discovered that the commit that set it to HTML didn't make it into alpha 4. Working on pushing a fix now, but you can manually set it yourself in the meantime and tell us if that fixes this.

On Apr 2, 2011, at 6:20 AM, "anttears" reply@reply.github.com wrote:

USing jQuery1.5.2 and jQuery Mobile 1.0a4 I am seeing a never ending loading popup when clicking links. I am using a an android HTC Desire (v2.2) and sending my bundle up to Phonegap, then viewing the web page as an installed app.

START

If I revert to jQuery 1.4.3 and capute clicks on links then use changePage this works, but fails in later versions of jQuery.

Have just read on issue 991 that there may be a dataType issue - I'll have a look at this on Monday and report back. Ant

Reply to this email directly or view it on GitHub: https://github.com/jquery/jquery-mobile/issues/1352

anttears commented 13 years ago

I can confirm that setting the dataType to html has fixed the problem for me. Cheers, Ant

toddparker commented 13 years ago

Fixed by this commit: https://github.com/jquery/jquery-mobile/commit/8cd0d2c6790f55718eb95cf428a3cd6f64c58d23