I've contributed a lot to the phonegap-blackberry project, and in all of my tests, for some reason the XmlHttpRequest object always raises an empty exception when you call the open() function on it. I'm not sure why - phonegap-blackberry in its current form leverages RIM's proprietary, non-WebKit browser, so maybe that has something to do with it What I've done though is implement a very basic, native, Java-based approach to making HTTP requests and retrieving the response. It is bridged back into JavaScript in your PhoneGap app as part of the 'network' PhoneGap API.
Some information about that is here: wiki.phonegap.com/Known-issues-(BlackBerry ) NOTE: this is most definitely a stopgap measure. The implementation is rough and could definitely use some work. Currently, it only works with API endpoints that return JSON Example usage: navigator.network.
XHR('http://www.mysite.com/myapi', 'This is my POST data, or I could pass in "null" for empty POST data', function(response) { // This is my success callback. // Do something with the JSON response object here. }) Hope that helps.
I've contributed a lot to the phonegap-blackberry project, and in all of my tests, for some reason the XmlHttpRequest object always raises an empty exception when you call the open() function on it. I'm not sure why - phonegap-blackberry in its current form leverages RIM's proprietary, non-WebKit browser, so maybe that has something to do with it. What I've done though is implement a very basic, native, Java-based approach to making HTTP requests and retrieving the response.It is bridged back into JavaScript in your PhoneGap app as part of the 'network' PhoneGap API.
Some information about that is here: wiki.phonegap.com/Known-issues-(BlackBerry) NOTE: this is most definitely a stopgap measure. The implementation is rough and could definitely use some work. Currently, it only works with API endpoints that return JSON.
Example usage: navigator.network. XHR('http://www.mysite.com/myapi', 'This is my POST data, or I could pass in "null" for empty POST data', function(response) { // This is my success callback. // Do something with the JSON response object here.
}); Hope that helps.
Yes that definitely helps, thanks. I had seen the issues for blackberry, but wasn't sure about the specifics behind it. With that implementation, is there any way to set request headers?
– a. Meservy Jul 22 '10 at 14:36 No. Headers are set on the native end in Java, see github.Com/phonegap/phonegap-blackberry/blob/master/framework/… For a quick fix, you should be able to set them in Java for your needs, or, feel free to extend this so that you can set it via JavaScript.
If you do, make sure you send me a pull request on github (github. Com/filmaj) and i'll be sure to include it back into the master! I really want to scrap this implementation and just write the full XHR API properly.
Let me know your thoughts on this, perhaps we can combine efforts. – fil maj Jul 22 '10 at 19:40.
I've contributed a lot to the phonegap-blackberry project, and in all of my tests, for some reason the XmlHttpRequest object always raises an empty exception when you call the open() function on it. I'm not sure why - phonegap-blackberry in its current form leverages RIM's proprietary, non-WebKit browser, so maybe that has something to do with it. What I've done though is implement a very basic, native, Java-based approach to making HTTP requests and retrieving the response.
It is bridged back into JavaScript in your PhoneGap app as part of the 'network' PhoneGap API. NOTE: this is most definitely a stopgap measure. The implementation is rough and could definitely use some work.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.