WHITE PAPERS  |  PRICING  |  DOWNLOADS

 

username

password

 

 

 

 

 

 

 

 

 

 

  Desktop Edition Details  

 

  > Features  

  > Key Benefits  

  > Screenshots  

  > Standards Supported  

  > Pricing  

  > Download Now

 

 

  Developer Resources  

 

  > API Documentation  

  > Developers Guide  

  > Code Examples  

  > Updated Builds  

  > Technical Articles  

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

Application test examples

 

Deploying WebRenderer

WebRenderer DOM

  

  

 

Loading content into WebRenderer

 

 

 

How to load a URL with WebRenderer

IBrowserCanvas browser = BrowserFactory.spawnMozilla();
browser.loadURL("http://www.webrenderer.com");

The loadURL function takes a URL in the form of a string.

How to load HTML in a String with WebRenderer

String localDirectoryPath = "C:/Windows/myWorkingDirectory";
browser.loadHTML("<HTML>My String of HTML</HTML>", localDirectoryPath);


How to load HTML in a byte array with WebRenderer

byte[] mybytearray = new String("<html>Convert text to bytes</html>").getBytes("UTF-8");
browser.loadHTML(mybytearray);

How to load HTML from a base location (required for image loading))
 
browser.loadHTML("", "");

  top

 

 

 Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries 

Privacy Policy  |   Disclaimer