Kendo UI for jQuery
Overview
Frameworks
jQuery
Angular
React
Vue
Demos
Roadmap
What's New
Roadmap
Release History
Docs & Support
Pricing
Search
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
Kendo UI for jQuery
This is a migrated thread and some comments may be shown as answers.
Phonegap not loading javascript
1 Answer
40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard
asked on
29 Aug 2012,
03:40 PM
I switched my app over to Kendo from Jquery Mobile. It works on the desktop but when I compile it for IOS or Android the javascript doesn't load at all. Any clue what could be causing this?
Add a comment
Submit comment
Cancel
1 Answer
, 1 is accepted
Sort by
Score
Date
0
Richard
Top achievements
Rank 1
answered on
30 Aug 2012,
03:11 AM
Nevermind I had forgotten to add:
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript">
function onBodyLoad()
{
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady()
{
// do your thing!
}
</script>
</head>
<body onload="onBodyLoad()">
Once I added that it compiled fine for all platforms.
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or
Copy link