cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garth Gutenberg (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-5488) deviceready event not firing with jQuery Mobile
Date Tue, 18 Mar 2014 20:33:46 GMT

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

Garth Gutenberg edited comment on CB-5488 at 3/18/14 8:32 PM:
--------------------------------------------------------------

Same issue for me (Cordova 3.4.0-0.1.3).  Using Sencha Touch, not jQuery Mobile.  The ST code
loads after this block.  Following is the script tag load order:

{code}
<script src="https://maps.googleapis.com/maps/api/js?&sensor=true&v=3&libraries=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}

Note that moving cordova.js to the top of the list of scripts has no effect, other than the
error occurring sooner.  I.e., the following throws the same error:

{code}
<script src="cordova.js" type="text/javascript" charset="utf-8"></script>
<script src="https://maps.googleapis.com/maps/api/js?&sensor=true&v=3&libraries=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>
{code}

FYI, rolling back to Cordova 3.3.1-0.4.2 resolves the issue.


was (Author: ggutenberg):
Same issue for me (Cordova 3.4.0-0.1.3).  Using Sencha Touch, not jQuery Mobile.  The ST code
loads after this block.  Following is the script tag load order:

{code}
<script src="https://maps.googleapis.com/maps/api/js?&sensor=true&v=3&libraries=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}

Note that moving cordova.js to the top of the list of scripts has no effect, other than the
error occurring sooner.  I.e., the following throws the same error:

{code}
<script src="cordova.js" type="text/javascript" charset="utf-8"></script>
<script src="https://maps.googleapis.com/maps/api/js?&sensor=true&v=3&libraries=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>
{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)

Mime
View raw message