User    Pass    













Key Benefits




Standards Supported




Download Now


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




Java to JavaScript communication with WebRenderer



Click here to download working example code


Deploying WebRenderer in a Java Applet

WebRenderer has two effective methods used for communicating between Java and JavaScript code. The methods available consist of the executeScript method and the executeScriptWithReturn method found in IBrowserCanvas.

executeScript: - executeScript takes a String containg any valid JavaScript which will be immediately executed on the page loaded in WebRenderer. Using this method you can directly call global or custom JavaScript functions.

//Changing the current documents background color to green
//Throwing a JavaScript Alert dialog box
browser.executeScript("alert('Background color changed');");

- executeScriptWithReturn returns any variable from JavaScript or method return values that you choose to call it upon.

//Executing some JavaScript - Calling a function in JavaScript that
//has a return value and passing the return value back to Java.

The executeScriptWithReturn can be called on any JavaScript function or variable and it will return the value.

For information on communicating from
JavaScript to Java please see click here.. 



Millions of deployments and counting.. Users of JadeLiquid's tools can be found in every corner of the Earth




 > Enabling Flash in WebRenderer - Article
 > Browser Zoom Effect using WebRenderer - Article
 > Applet deployment techniques - Article
 > WebRenderer core features on display! - Article
   Additional News  
 > Enabling HTML 5 WebSockets in WebRenderer - Blog
 > 64bit WebRenderer deployment with Web Start - Blog
 > Deploying WebRenderer Server Edition in Tomcat - Blog
 > WebRenderer 6 adds performance text search - Blog


 Java and the Java Logo are trademarks or registered trademarks of Oracle Corporation in the United States and other countries 

Privacy Policy  |   Disclaimer