05-06-2011 10:47 AM
05-06-2011 12:01 PM
@aesculus: I am writing an app that uses JQuery, JSON, CSS, and HTML5 in Eclipse and WebWorks and the calls work just fine. What is the architecture of your application?
05-06-2011 12:16 PM - edited 05-06-2011 12:17 PM
The same except I also use jqTouch and am not using a framework like eclipse. Doing it all by hand. My back end is PHP and returns json.
Is there any js libraries that have to be added for the BlackBerry to support json? I looked around and did not see any.
05-06-2011 12:43 PM
05-06-2011 12:58 PM
There aren't any as far as I have seen. However, there may be something as far as the WebWorks SDK is concerned. My suggestion (just to rule it out) is to setup the free WebWorks SDK on your machine and try something simple that uses JQuery to send and/or receive JSON. You can find the steps I used to set up WebWorks here if you need them and of course this little company called Research In Motion has fabulous instructions located here.
05-06-2011 01:16 PM
Can you look at the final execution file of your BlackBerry application (the index.html file) and see what source libraries Eclipse may have added from the WebWorks SDK?
For example for jquery I added:
I am thinking the SDK may add other features to support the browser that are not native.
05-06-2011 01:22 PM
It appears as though others may have had similar issues on OS5. You can view the thread here. It will be interesting to see what may be causing this.
05-06-2011 02:16 PM
I think its the same problem and thanks for the link. My server is on the same domain but it does turn around and talk to other servers so maybe it is a problem. I would have suspected the cross domain piece would have been hidden from the BB.
And after looking at some of my code json is working OK. Its the cross domain calls from the server that is being blocked.