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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
sgm_friends
Posts: 50
Registered: ‎07-12-2011
My Carrier: Programmer

Some url showing as “ Bad Request (Invalid URL) ” on browserfield

I've display a webpage using browserfield. It showing all webpage successfully.

But when i pass the this url http://mobile.idaholottery.com/#page-last5pb

The web page hasn't display. Its shows "Bad Request URL" but if i try to open on brower, its loading.

My code is,

 

BrowserFieldConfig config = new BrowserFieldConfig();
        String userAgent = "BlackBerry" + DeviceInfo.getDeviceName() + "/" +    DeviceInfo.getSoftwareVersion() +" Profile/" + System.getProperty("microedition.profiles") +" Configuration/" + System.getProperty( "microedition.configuration") + " VendorID/" + Branding.getVendorId();
        config.setProperty(BrowserFieldConfig.USER_AGENT, userAgent);
        config.setProperty(BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE);
        config.setProperty(BrowserFieldConfig.ENABLE_GEARS, Boolean.TRUE);
        config.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
        config.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);    
        config.setProperty(BrowserFieldConfig.ENABLE_COOKIES,Boolean.TRUE);
        config.setProperty(BrowserFieldConfig.USER_SCALABLE, Boolean.TRUE);

Why isn't open on browserfield and How to show the url in bb browserfield, any setting need to add?

Please use plain text.
Developer
simon_hain
Posts: 14,051
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Some url showing as “ Bad Request (Invalid URL) ” on browserfield

try it without the '#', does it work?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.