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
New Developer
Posts: 7
Registered: ‎09-15-2010
My Device: Not Specified
Accepted Solution

dataURI as HTML in BlackBerry OS5.0 BrowserField

Hi,

 

I've been trying to get a browserField to parse HTML within a dataURI. 

 

It's quite tricky to post an example in this forum :smileyhappy: But basically, anything simple using this dataURI generator...http://software.hixie.ch/utilities/cgi/data/data

 

Although I can display images in base64 format within plain HTML, I can't get a full HTML page parsed.

 

Can anyone point me in the right direction of any resources or ideas?

 

Thanks,

 

P.S : It works in OS6.0 - I assume WebKit has a better engine for this kind of thing. I need it for 5.0 though :smileyfrustrated:

New Developer
Posts: 7
Registered: ‎09-15-2010
My Device: Not Specified

Re: dataURI as HTML in BlackBerry OS5.0 BrowserField

Giving this a little bump, can anyone help me out? Or tell me it's not possible?

New Developer
Posts: 7
Registered: ‎09-15-2010
My Device: Not Specified

Re: dataURI as HTML in BlackBerry OS5.0 BrowserField

Ah-hah!

 

If you use a data URI, you must convert all semi-colons into the Unicode equivalent.

 

; = %3B

 

This means any dataURI images or CSS Styling within the original dataURI.

 

Hope this can be useful to someone.