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.

inside custom component

Java Development

Reply
Regular Contributor
sgm_friends
Posts: 73
Registered: ‎07-12-2011
My Device: 9800
My Carrier: Programmer

url not showing on browserfield

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

 

But when i pass the this url ,http://maps.doapps.com/traffic/traffic.php?lat=44.972000&lng=-93.283997.

 

The map didnot show. only the String show as "Map div".

In browser the map is show. but not in browserfield.

 

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.JAVASCRIPT_ENABLED, Boolean.TRUE);
config.setProperty(BrowserFieldConfig.USER_AGENT, userAgent);

BrowserField myBrowserField = new BrowserField(config); myBrowserField.requestContent("http://maps.doapps.com/traffic/traffic.php?lat=44.972000&lng=-93.283997");

How to show the url in bb browserfield, any setting need to add? Pls help me.

Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: url not showing on browserfield

Put a sniffer and compare the requests.

 

The server is probably searching for a header which is not sent when using the BrowserField.

 

E.

Please use plain text.
Regular Contributor
sgm_friends
Posts: 73
Registered: ‎07-12-2011
My Device: 9800
My Carrier: Programmer

Re: url not showing on browserfield

@maadani  Sorry. i can't understand. Can u explain briefly. how to Put a sniffer and compare the requests.

Please use plain text.
Contributor
jagadesh
Posts: 16
Registered: ‎05-10-2011
My Device: 9800
My Carrier: Develoer

Re: url not showing on browserfield

Dear all,

 

If any one has sloved this issue, please let me know i have been facing the same issue now

Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: url not showing on browserfield

try with this

http://maps.doapps.com/traffic/traffic.php?lat=44.972000&lng=-93.283997&output=embed

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.