01-25-2010 11:45 AM
This probably isn't a BlackBerry-specific thing but I figured I'd ask here anyway.
01-26-2010 09:31 AM
To access a file on the local system, use the "file:///" protocol. Here's an example of the path to an image file stored on removable media (SD card):
You can also load file paths directly in the address field of the browser (e.g. to verify path is valid).
As a reminder, you cannot access these files if your BlackBerry is currently in mass storage mode.
02-09-2010 03:26 AM
I am using "Blackberry Java Development Environment". In that I am trying to request the server(126.96.36.199) to access data . While I am requesting the server it is giving the error that.
--> Cross origion Access Voilation.
I am requesting the server as http://188.8.131.52/abc/PhonePage.aspx in Phone.html.
Is it possible to use xmlHTTP request in Blackberry Java Development Environment to interact with the server.
Please help me in this regard.And im new to this technology. More over all the HTML pages are stored locally. And some html pages are used from server.
Thanks and Regards
02-09-2010 12:30 PM
I have a few questions that might help clarify your approach and possible solutions.
- Which version of the BlackBerry operating system are you using?
- If it is v5.0, are you using the BrowserField or BrowserField2 API?
02-11-2010 11:08 AM
In order to allow cross origin XHR requests in BrowserField2, you will need to set the proper BrowserFieldConfig property.
There is a property called ALLOW_CS_XHR and it needs to be set to true
11-02-2012 02:40 PM
I am developing an application which uses the BrowserField with local HTML resources that need to access RESTful services via XMLHttpRequest (using jQuery to hide that detail). I have set the ALLOW_CS_XHR property to true in my browser config, but the request still doesn't leave the browser control. Any idea as to what might be wrong?