jquery-archive / jquery-mobile

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

jQuery Mobile, Phonegap, and Windows Phone 7 #3926

Closed azampagl closed 12 years ago

azampagl commented 12 years ago

jQuery: 1.7.1 jQuery Mobile: 1.1.0-rc.1 RequireJS: 1.0.7 PhoneGap: Cordova-1.5.0.js OS: Windows Phone 7 (Windows Phone SDK 7.1)

I'm trying to use jQuery mobile with cordova (phonegap) and am running into a problem on windows phone 7. This is not an issue on any other device (Android 2.3.3 and iOS 5). I can verify that jQuery and jQuery Mobile are successfully loaded via RequireJS, and even did some basic DOM manipulation with jQuery to verify ("$.mobile" also displays as an "object" according to console.log). However, when I try to call $.mobile.changePage('home.html') nothing happens and it spits out the following error:

... The thread '' (0xe85009e) has exited with code 0 (0x0). Error:"\"Unable to get value of the property 'trigger': object is null or undefined\"" The thread '' (0xf9300a6) has exited with code 0 (0x0).

Unfortunately, that's all the windows debugger spits out... Hopefully someone can narrow the issue down based on the changePage call.

johnbender commented 12 years ago

@azampagl

Quick note: We don't support the loading of JQM via amd modules in production. For right now it's purely meant to be used as a build tool.

Either way, does the problem still happen if you load it as a single library? That is, the way the docs recommend? A sample would be useful

@sgrebnov

Maybe you'd like to take a look at this one.