Hello,
My app has multiple pages. In one of my pages, deviceready doesn't fire so I cant use some phonegap plugins etc.
My app ID is 1057505 and the page that has the problem is sat.html and sat.js
My app has multiple pages. In one of my pages, deviceready doesn't fire so I cant use some phonegap plugins etc.
My app ID is 1057505 and the page that has the problem is sat.html and sat.js
- 28 Posts
- 0 Reply Likes
Posted 6 years ago
Eddy Verbruggen, Champion
- 375 Posts
- 86 Reply Likes
Did you correctly add a reference to the injected cordova.js (in the root folder) to sat.html?
- 28 Posts
- 0 Reply Likes
I added the reference like this:
script type="text/javascript" src="phonegap.js"></script
Is it wrong?
script type="text/javascript" src="phonegap.js"></script
Is it wrong?
Eddy Verbruggen, Champion
- 375 Posts
- 86 Reply Likes
Depends. If sat.html is in the root folder it is. If it's in a sub folder you need to change it to ../phonegap.js
- 28 Posts
- 0 Reply Likes
Eddy Verbruggen, Champion
- 375 Posts
- 86 Reply Likes
Maybe there's a js error somewhere. You'll need to wait for pgb folks to step in or post a link to your code uf you want others to help.
- 4116 Posts
- 192 Reply Likes
Hi,
Will look at this in a bit.
Sorry for the late reply and thanks Eddy for the help so far.
Will look at this in a bit.
Sorry for the late reply and thanks Eddy for the help so far.
- 4116 Posts
- 192 Reply Likes
- 4116 Posts
- 192 Reply Likes
- 28 Posts
- 0 Reply Likes
- 4116 Posts
- 192 Reply Likes
Tested this just now.
Worked when I set the source directly to the page(since I don't have a login credential to access the page as normal).
Would send you the corrected code used.
Worked when I set the source directly to the page(since I don't have a login credential to access the page as normal).
Would send you the corrected code used.
- 28 Posts
- 0 Reply Likes
- 4116 Posts
- 192 Reply Likes
Hi, there is a parameter in config.xml that allows you to access any page as the launch page on iOS and Android:
<code><content src="somepage.html"/></code>
So I accessed your Sat page directly using that.
Have a look at the file I sent you.
Thanks.
<code><content src="somepage.html"/></code>
So I accessed your Sat page directly using that.
Have a look at the file I sent you.
Thanks.
- 28 Posts
- 0 Reply Likes
Your code works fine.
I guess I figured out what is wrong. In my app, I navigate to sat.html from a different page using href="sat.html"..
So the problem is when I click that link, sat.html loads but the .js file doesn't load.
I think I should navigate to the sat.html via the javascript not the html href
I guess I figured out what is wrong. In my app, I navigate to sat.html from a different page using href="sat.html"..
So the problem is when I click that link, sat.html loads but the .js file doesn't load.
I think I should navigate to the sat.html via the javascript not the html href
- 4116 Posts
- 192 Reply Likes
- 28 Posts
- 0 Reply Likes
I changed the click events. I assigned the events to the buttons on the javascript side. It works great now. You can close this topic.
- 4116 Posts
- 192 Reply Likes
This conversation is no longer open for comments or replies.
This conversation is no longer open for comments or replies.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers
