BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-08-2007, 12:54 AM   #1 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Third party HTML display class available? (BrowserField no good so far)

Please Login to Remove!

Hi,

Are there any third party HTML displaying/rendering classes?

I am developing some BlackBerry software. I have a need to have an application render basic HTML (Old HTML v3 spec is fine, no JavaScript) from boilerplate text. Essentially, be able to render HTML pages formatted out of string and image resources built into my BlackBerry application. I also have a need to be able to read form fields and dynamically generate my own HTML (as a string) to pass to a HTML renderer.

I can't use the BlackBerry browser because it doesn't work with loading boilerplate HTML and images.
"Class Browser" doesn't seem to do what I need it to do because I'm trying to load internal pages (html text and images) generated by my application.

If I can't do this, I'm going to have to write a rudimentary HTML2 or HTML3 web renderer from scratch, and I would rather not reinvent the wheel. If there are no free options I am also willing to pay to license this HTML rendering class (depending on budget). Please note that I prefer the RIM JDE, although I am also willing to consider J2ME options.

I'm also willing to consider alternate formatted-text renderer options (ie RTF), I'd just convert the HTML file on the fly to display formatted text as necessary, even if I have to implement the images separately

Reply to this thread, or if you prefer, email me directly at [email address] rather than sending me a PM
(I don't check my PM's on BlackBerryForums much)
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source

Last edited by Mark Rejhon : 08-08-2007 at 01:01 AM.
Offline  
Old 08-08-2007, 06:24 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

BrowserField();
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 08-08-2007, 11:16 AM   #3 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes, but what if I need to do it with canned HTML/text and images, even on a BlackBerry without a wireless connection or out-of-reception? And that I'm also additionally able to capture filled form (elements within <form> ... </form>) without connecting to the Internet?

No http:// URL's, no file:// URL's -- just canned HTML/text/images. In addition, it needs to work on models going back to OS 4.0 models, including 7100 and 7290.

If not, I'll have to write my own little HTML renderer from scratch, but I'd rather use existing code, even a commercial library. I'm willing to pay for getting this capability since it's for an upcoming project I'm doing. I'm trying to save time on a deadline.
  • Are there any examples I can refer to, that can do these with just BrowserField? (net.rim.device.api.browser.field)

  • Even if you can't provide code, can any other developers confirm that offline HTML viewing with form field accessiblity, and hopefully images too, can indeed be accomplished with just net.rim.device.api.browser.field ?
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source

Last edited by Mark Rejhon : 08-08-2007 at 11:34 AM.
Offline  
Old 08-19-2007, 06:06 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is a way to use Browser control for this. It is discussed here:
Browser field without using a url

It looks like a hack and i don't know the way to reference images or something else there, but it works.
Offline  
Old 09-05-2007, 12:38 PM   #5 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the pointers.

As a kludgy workaround:
I'm thinking it is possible to write a mini webserver on the BlackBerry itself, and fetch the pages/images using localhost this way. Any opinions?

Alternatively, I may use JavaScript as a workaround to some things I was hoping to do. I can see BrowserField supports JavaScript. Can somebody point me to some source code examples that utilizes net.rim.device.api.browser.field to render some HTML content within an app? I can't find examples through RIM - it must be hidden deep somewhere...
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source

Last edited by Mark Rejhon : 09-05-2007 at 12:46 PM.
Offline  
Old 09-06-2007, 03:14 PM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are few samples for net.rim.device.api.browser.field package in samples, bundled with JDE:
%JDE_HOME%\samples\com\rim\samples\device\blackber ry\browser

hope this will help!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.