[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-29 Thread Markus Gubitz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13984492#comment-13984492
 ] 

Markus Gubitz commented on CB-5488:
---

Anybody else facing problems with the resume-event when using the given fix?

Before applying the fix that part worked fine, afterwards neither the resume 
or deviceready-event is fired on resume.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Andrew Grieve

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-24 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13980330#comment-13980330
 ] 

ASF subversion and git services commented on CB-5488:
-

Commit 5a38908fb54f2ad7dff837810e89e9f6a614cdbf in cordova-js's branch 
refs/heads/browserify from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=5a38908 ]

CB-5488 ios: Don't attempt iframe bridge until document.body exists


 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Andrew Grieve

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-22 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13977262#comment-13977262
 ] 

ASF subversion and git services commented on CB-5488:
-

Commit 5a38908fb54f2ad7dff837810e89e9f6a614cdbf in cordova-js's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=5a38908 ]

CB-5488 ios: Don't attempt iframe bridge until document.body exists


 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread JIRA

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13972889#comment-13972889
 ] 

Gerald Müller commented on CB-5488:
---

I have the same issue with cordova 3.4.1-0.1.0. I´m using Ember.js in my app. 
Hope there is a proper fix for this soon...

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread Garth Gutenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13972942#comment-13972942
 ] 

Garth Gutenberg commented on CB-5488:
-

Emailing an Xcode project zip to you directly, Andrew.  There's some 
proprietary code in there that I'd prefer wasn't publicly available on the 
internet.  You should have it within the hour.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread Victor Adrian Sosa Herrera (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13972956#comment-13972956
 ] 

Victor Adrian Sosa Herrera commented on CB-5488:


Hello.
I faced the same problem several months ago and managed to solve it (at that 
time I was using Cordova 3.1 but now I'm using 3.4 and still works)
https://www.ibm.com/developerworks/community/blogs/victorsh/entry/apache_cordova_and_jquery?lang=en

Short story:
You need to let jQuery to load first, so you are sure the jQuery 
widgets/functions are loaded properly. You can do that using
$(document).bind('ready', function(){
// Other logic here
})

Once you are sure jQuery is loaded properly, you can bind the deviceready event
$(document).bind('ready', function(){

// Cordova 'deviceready' event turn
$(document).bind('deviceready', function(){
 // Your Cordova initialization goes here
});
});

One thing to note is that when declaring the script files, using script tag, 
you need to declare jQuery first and then cordova.js.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread JIRA

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13972983#comment-13972983
 ] 

Gerald Müller commented on CB-5488:
---

Thanks a lot Victor! Your suggestion solved it within my app. :)

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread Victor Adrian Sosa Herrera (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13972994#comment-13972994
 ] 

Victor Adrian Sosa Herrera commented on CB-5488:


Hi Garth.
Sorry to hear that, I'm not versed on Sencha Touch so I'm useless here. I still 
think it is a JS loading sequence though.
Please, share your solution with the community and I'll make sure to post a 
section for Sencha scenario solution (with the appropriate acknowledgement to 
you of course :-).

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread Dooms (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13973521#comment-13973521
 ] 

Dooms commented on CB-5488:
---

I too have tried moving the script order, with cordova loaded first, middle, 
last, without success. 

I find cordova will so far load if most of my scripts are lazy loaded (script 
tags inserted later), well after cordova has fired deviceready. 

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-17 Thread Chris Wiggins (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13973772#comment-13973772
 ] 

Chris Wiggins commented on CB-5488:
---

Hi all,

I've found how to fix this temporarily for our particular application, but want 
to weigh in with what we're experiencing. 

We're using Sencha Touch, and this happens intermittently when the included 
app.js is 2.6MB in size. We disabled YUI compression to make it easier to find 
issues in the app crashing which caused the large file size. Sometimes, opening 
the app, from scratch, it just sits at the splash screen (and I have to 
force-quit), other times it opens correctly. This happens in both the iOS 
simulator, as well as on any iPhone. Opening the Safari debug console (when 
running in the simulator) and calling window.location.reload() causes the app 
to then load if it freezes at the splash screen.
I just tried re-enabling YUI compression, which has reduced our app.js down to 
704KB and this seems to fix the issue!

I suspect that what's happening is our app is MISSING the deviceReady event. Is 
this possible? Maybe Cordova needs to wait a little bit for the web view to 
settle before calling deviceReady?

Cheers
Chris

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-14 Thread Dooms (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13968105#comment-13968105
 ] 

Dooms commented on CB-5488:
---

As a side note with this issue, even when one confirms cordova has loaded, 
plugins are not necessarily loaded, and thus cause issues with functionality 
intermittently not being available.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-14 Thread Dooms (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13968160#comment-13968160
 ] 

Dooms commented on CB-5488:
---

An update: after a few hours more on this bug, I suspect it occurs whenever 
*any* scripts take too long to load, forcing cordova to quit its initialisation.


 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-11 Thread Garth Gutenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13966465#comment-13966465
 ] 

Garth Gutenberg commented on CB-5488:
-

New patch:

{code:JavaScript}
document.addEventListener( 'deviceready', function() {
window.hasFiredDeviceReady = true;
if ( parseFloat( window.device.version ) = 7.0  
window.device.platform == 'iOS' ) {
document.body.style.marginTop = '20px';
}
}, false );

var devicereadyTimeout = parseInt( window.localStorage.getItem( 
'devicereadyTimeout' ) ) || 1000;
setTimeout( function() {
// Fix for deviceready not firing
// https://issues.apache.org/jira/browse/CB-5488
console.log( 'Checking window.hasFiredDeviceReady' );
if ( ! window.hasFiredDeviceReady ) {
window.localStorage.setItem( 'devicereadyTimeout', 
devicereadyTimeout + 1000 );
window.location.reload();
}
else {
alert( devicereadyTimeout );
}
}, devicereadyTimeout );
{code}

In the case of an iPhone 4 running iOS 7.1, devicereadyTimeout reached 21000 
before deviceready fired.  

Is anyone from Cordova listening to this?  Bueller?  Bueller?  Bueller?

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-11 Thread Garth Gutenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13966584#comment-13966584
 ] 

Garth Gutenberg commented on CB-5488:
-

Even better fix - this seems to work flawlessly, but requires modifying 
cordova.js:

Replace lines 1627-1630:

Old:
{code:JavaScript}
window.cordova = require('cordova');
// file: src/scripts/bootstrap.js

require('cordova/init');
{code}

New:
{code:JavaScript}
var documentBodyIntervalID = window.setInterval( function() {
if ( null == document.body ) {
return;
}

window.clearInterval( documentBodyIntervalID );

window.cordova = require('cordova');
// file: src/scripts/bootstrap.js

require('cordova/init');
}, 100 );
{code}

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-10 Thread Garth Gutenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13965498#comment-13965498
 ] 

Garth Gutenberg commented on CB-5488:
-

Hey guys.  I just updated to Cordova 3.4.1-0.1.0 and I'm still having an issue 
with deviceready not firing, on both the iOS Simulator and a physical device.  
If I connect desktop Safari to the device/simulator, and call 
window.location.reload() in the console, the reloaded page fires the event.  
But the initial load never does.

I can provide an Xcode project in order for you to reproduce the issue.  This 
is becoming pretty major, as 3.4.1 is supposed to fix the iOS arm64 issues, but 
since I can't even deploy an app successfully using 3.4.x I'm in quite a bind 
here.

Please help.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-10 Thread Garth Gutenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13965506#comment-13965506
 ] 

Garth Gutenberg commented on CB-5488:
-

A workaround that I've implemented (which doesn't make any sense to me, but 
maybe someone on your side can figure out why it's happening):

{code:JavaScript}
document.addEventListener( 'deviceready', function() {
window.hasFiredDeviceReady = true;
}, false );

setTimeout( function() {
console.log( 'Checking window.hasFiredDeviceReady' );
if ( ! window.hasFiredDeviceReady ) {
console.log( 'Reloading...' );
window.location.reload();
}
}, 1 );
{code}

I connect Safari as fast as I can, but the first messages I see are:

{quote}
[Log] deviceready has not fired after 5 seconds. (console-via-logger.js, line 
173)
[Log] Channel not fired: onCordovaInfoReady (console-via-logger.js, line 173)
{quote}

After 10s, the page reloads and I get a full console output, including:

{quote}
[Error] TypeError: 'null' is not an object (evaluating 
'document.body.appendChild')
createExecIframe (cordova.js, line 833)
iOSExec (cordova.js, line 1009)
getInfo (device.js, line 74)
(anonymous function) (device.js, line 48)
fire (cordova.js, line 750)
(anonymous function) (cordova.js, line 1195)
f (cordova.js, line 622)
fire (cordova.js, line 750)
(anonymous function) (cordova.js, line 1183)
onScriptLoadingComplete (cordova.js, line 1369)
scriptLoadedCallback (cordova.js, line 1386)

[Log] deviceready has not fired after 5 seconds. (console-via-logger.js, line 
173)
[Log] Channel not fired: onCordovaInfoReady (console-via-logger.js, line 173)
{quote}

After 10s the page reloads again... only this time the error is not thrown, and 
it loads fine.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-04-01 Thread Johann Ish (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13957154#comment-13957154
 ] 

Johann Ish commented on CB-5488:


Same issue as [~ggutenberg] with Cordova 3.4.0-0.1.3 and Sencha Touch.  
However, it only seems to happen in the iOS Simulator for me.  I've yet to 
reproduce it on an actual device.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-03-18 Thread Garth Gutenberg (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13939710#comment-13939710
 ] 

Garth Gutenberg commented on CB-5488:
-

Same issue for me.  Using Sencha Touch, not jQuery Mobile.  Following is the 
script tag load order:

{code}
script 
src=https://maps.googleapis.com/maps/api/js?sensor=truev=3libraries=geometry;
 type=text/javascript /script
script src='http://weeverapp.com/lib/js/markerwithtags.js' 
type='text/javascript'/script
script src='http://weeverapp.com/lib/js/clusterer.js' 
type='text/javascript'/script
script src='http://weeverapp.com/lib/js/infobubble.js' 
type='text/javascript'/script
script src=cordova.js type=text/javascript charset=utf-8/script
{code}

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-03-14 Thread Binh An Tran (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13934803#comment-13934803
 ] 

Binh An Tran commented on CB-5488:
--

after update to cordova 3.4.0-0.1.3 i have exactly same exception 'null' is 
not an object (evaluating document.body.appendChild) . I use enyojs though, 
not jquery mobile. My app worked perfectly with cordova 3.3.0


 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2014-03-02 Thread Dooms (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13917752#comment-13917752
 ] 

Dooms commented on CB-5488:
---

I would like to add to this issue.

It seems that any exception generated in the following cordova.js , causes the 
deviceready not to fire:

channel.join(function() {
modulemapper.mapModules(window);

platform.initialize  platform.initialize();


 // EXCEPTION HERE
// Fire event to notify that all objects are created
channel.onCordovaReady.fire();

// Fire onDeviceReady event once page has fully loaded, all
// constructors have run and cordova info has been received 
from native
// side.
channel.join(function() {
require('cordova').fireDocumentEvent('deviceready');
}, channel.deviceReadyChannelsArray);
}, platformInitChannelsArray);


Tracing back, the exception is being generated inside createExecIframe():
'null' is not an object (evaluating document.body.appendChild)

The events not fired after 5 seconds are onCordovaInfoReady and 
onCordovaConnectionReady



 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.1.0
Reporter: Federico Kereki
Assignee: Shazron Abdullah

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2013-12-02 Thread Mike Billau (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13836674#comment-13836674
 ] 

Mike Billau commented on CB-5488:
-

[~shazron], what order are the scripts tags in in the built application? I have 
seen this issue come up a few times on StackOverflow and iirc the problem 
always seems to be with putting jquery script tag first, before the cordova 
script. Do you have any idea why that would be? I will look into it this week - 
I don't think that the script tag order should matter, but if it does, we at 
least need to document it (and worst case, edit the shell scripts to make sure 
cordova tag is always first.)

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-5488) deviceready event not firing with jQuery Mobile

2013-12-02 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13836867#comment-13836867
 ] 

Shazron Abdullah commented on CB-5488:
--

[~mrbillau] The jquery script tags I quoted above are in the head tag, so they 
load first -- then cordova is loaded in the script tag in the document body.

 deviceready event not firing with jQuery Mobile
 ---

 Key: CB-5488
 URL: https://issues.apache.org/jira/browse/CB-5488
 Project: Apache Cordova
  Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Federico Kereki

 If you use PhoneGap + jQuery + jQuery Mobile, the deviceready event doesn't 
 fire. Googling around, I found several similar reports, all pointing out that 
 if jQuery Mobile isn't included, the event fires.



--
This message was sent by Atlassian JIRA
(v6.1#6144)