Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® World™ Development

Reply
New Contributor
Posts: 4
Registered: ‎08-22-2011
My Device: Blackberry Torch 9800
My Carrier: O2
Accepted Solution

Blackberry webworks-phonegap not recognising/executing my header.

Hello All,

 

I am trying to create an app that would be compatible and working on all the platforms. For the development I'm using Phonegap. I have tested my code on iOS and Android and it works fine as I tested it on device as well as on emulator. But when I tested the same code on Blackberry (using phonegap and blackberry webworks, running the emulator through command prompt on Windows), it doesnt recognise or execute the code i have written in the <head> tag. Basically I have various <script> tags with 2-3 javascript files included and thus it doesnt execute any of the scripts in it. So because of this, interface & core functionality of the app is lost and a blank screen is all I get.

I have tested the simple Javascript alert function by putting it in page load event of body tag and it works fine. Ans it works well on iOS & Android. 

 

Can anyone please tell me what could be the possible reason for this? Please do help me out with this as I am not move forward because of this problem. Any help would be much appreciated. Smiley Happy

 

Cheers,

Prajakta

New Contributor
Posts: 4
Registered: ‎08-22-2011
My Device: Blackberry Torch 9800
My Carrier: O2

Re: Blackberry webworks-phonegap not recognising/executing my header.

Anyway, the problem is solved. Turns out that there was no problem with recognising and executing scripts if the external file were in the same folder or folder below the current one. The scripts werent recognised if they were left one level above the current folder.

 

 

Cheers!