jquery-archive / jquery-mobile

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

Content not loading using Ajax in version Alpha 3 #1015

Closed jeos80 closed 13 years ago

jeos80 commented 13 years ago

After initializing the pageshow event in a menu, depending on the page id we trigger an ajax request to load content dinamically (list view).

After the release of Alpha 3 i upgraded the scripts to this version, but the ajax driven content stoped loading, after a series of tests i find out that if i change the script to version alpha1 the ajax content works fine.

thiagofesta commented 13 years ago

You can test this way: console.log($("someElementOnPageLoaded")); inside the pageshow event.

It'll return the element just on the first loading, on the second no.

Obs: i tested on Firefox 3.6.13 and works fine, on Chrome 9.0 didn't work. I didn't tested on other browsers.

octatone commented 13 years ago

Are you trying to access content over http or as local files? I have a bug open here and I've traced as to being a problem with local files causing errors: https://github.com/jquery/jquery-mobile/issuesearch?state=open&q=phonegap#issue/991

toddparker commented 13 years ago

I agree that this is probably a dupe of the local file:// issues we're seeing related to a regression in jQuery core 1.5. Closing as a duplicate.