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
Posts: 54
Registered: ‎05-04-2011
My Device: 1
My Carrier: developer

Html Content display

Hi friends,

 

                    I'm having String which stores Html content .  I want to display that string on my application screen. 

For Example,    String content="<p>Hi Ajith</p>"

 

Plz help me..

santhanam
Developer
Posts: 692
Registered: ‎08-09-2010
My Device: Not Specified

Re: Html Content display

Hi,

Check out this Link

 

http://docs.blackberry.com/en/developers/deliverables/11935/Display_HTML_in_a_browser_field_825639_1...

 

---------------------------------------------------------------------------------------------------------------------------------------------------------
feel free to press the kudos button  on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

Regular Contributor
Posts: 54
Registered: ‎05-04-2011
My Device: 1
My Carrier: developer

Re: Html Content display

in the last line of code it has shown,

 

myBrowserField.displayContent("<html><body><h1>Hello World!</h1></body></html>", "http://locahost")

is this necessary to include "http://loacalhost".
santhanam
Developer
Posts: 692
Registered: ‎08-09-2010
My Device: Not Specified

Re: Html Content display

Hi,

 

          Not necessary.You pass " " .

 

 If you given success then Click Accept Solution.

 

Thanks,

Umang.

---------------------------------------------------------------------------------------------------------------------------------------------------------
feel free to press the kudos button  on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

Highlighted
Regular Contributor
Posts: 54
Registered: ‎05-04-2011
My Device: 1
My Carrier: developer

Re: Html Content display

thank you shahumang.

..It is displaying awesome..

santhanam