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

Web and WebWorks Development

Reply
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom
Accepted Solution

BrowserField API in 4.7

I was trying to implement the browserfield api in OS 4.7 and i have exeprienced a lot of issues. To name a few:

1. search button not working

2. rendering of the pages doesn't appear like the RIM Browser even if i already set the User-Agent.

 

Do you have any idea why it behaves like this? Or do i need to use an alternative API? 

 

 

 

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BrowserField API in 4.7

In 4.7 the Browser Field uses the older renderer.  It uses the rendering engine from 4.5 and not the one of the newer BlackBerry Browser.  In 5.0 Browser Field2 uses the same rendering and JavaScript engine as the Browser.
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: BrowserField API in 4.7

Finally! somebody answered my question! Thanks tneil!....
Please use plain text.
Guru I
Xandrex
Posts: 18,377
Registered: ‎07-29-2008
My Device: Z10 10.1.0.2312 / Playbook 2.1 / 8900 5.0
My Carrier: Vodafone France (SFR) & B&You

Re: BrowserField API in 4.7


tneil wrote:
  • In 4.7 the Browser Field uses the older renderer.  It uses the rendering engine from 4.5 and not the one of the newer BlackBerry Browser.
  • In 5.0 Browser Field2 uses the same rendering and JavaScript engine as the Browser.

Dear tneil, this is great information. What about 4.6 ?



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BrowserField API in 4.7

[ Edited ]

Xandrex wrote:

tneil wrote:
  • In 4.7 the Browser Field uses the older renderer.  It uses the rendering engine from 4.5 and not the one of the newer BlackBerry Browser.
  • In 5.0 Browser Field2 uses the same rendering and JavaScript engine as the Browser.

Dear tneil, this is great information. What about 4.6 ?
The new rendering engine that was first found in the BlackBerry Browser on the Bold, is only now appearing in the BrowserField2 API in the 5.0 operating system.  Make sure you grab the latest 5.0 beta Java tooling to check it out.  The old BrowserField still has the 4.5 renderer in it to maintain backwards compatibility with older applications using it.  BrowserField2 now has A LOT more features to make you life easier and contains the new renderer.
Features such as:
- Full DOM access of the content in the BrowserField from Java, including subscription to DOM events
- It utilizes our new Transport API so you don't have to deal with any communications yourself
- Access to the JavaScript engine where you can create your own JavaScript objects written in Java and plug them into the BrowserField2
- And much more :smileyhappy: 
No other operating system has the new renderer as part of BrowserField just 5.0

 

Message Edited by tneil on 09-09-2009 07:20 AM
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Developer
matw
Posts: 3
Registered: ‎09-10-2009
My Device: Not Specified

Re: BrowserField API in 4.7

Hi Tim,

 

thanks for your answer, this also solved my question. 

When will the JDE Plugin and v5.0 of Java Tooling be available?

I didn't find anything in the developer zone but some press releases after searching. But all the links back to RIMs site where dead links. No way to get 5.0.

Do you know any place where I could get some snippets on how to use the "old" browserfield in v4.7 and earlier? All I get is docs telling me how to use field2 but I can't use this.

 

Thanks a lot,

matw

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: BrowserField API in 4.7

You can get the latest Eclipse component pack for 5.0 or the JDE beta in our beta software area here:

 http://na.blackberry.com/eng/developers/devbetasoftware/javasdk5.jsp

 

I believe the component packs should have a BrowserField sample

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Developer
matw
Posts: 3
Registered: ‎09-10-2009
My Device: Not Specified

Re: BrowserField API in 4.7

Thanks for your quick response.That worked perfectly for me.

 

Cheers,

Matthias

Please use plain text.
New Developer
tirsch
Posts: 2
Registered: ‎07-17-2008
My Device: Not Specified

Re: BrowserField API in 4.7

I cant import browser.field2..

 

C:\Program Files\Research In Motion\BlackBerry JDE 4.0\bin\workspaces\pdosutil50\browserfieldscreen.java:15: package net.rim.device.api.browser.field2 does not exist
import net.rim.device.api.browser.field2.*;

 

Any help?

 

Using the latest JDE 5 build

Please use plain text.
New Developer
navan1983
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Re: BrowserField API in 4.7

Download the latest Beta 3 from the site;

Link: http://na.blackberry.com/eng/developers/devbetasoftware/javasdk5.jsp

Ths issue mentioned by you looks fixed in this drop.

This would resolve your issue.

 

Thanks,

Navaneeth

Please use plain text.