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

Java Development

Regular Contributor
Posts: 73
Registered: ‎07-12-2011
My Device: 9800
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.USER_SCALABLE, Boolean.TRUE);

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

Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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