ABOUT US

|

SUPPORT

|

BLOG

 PRICING  | DOWNLOADS

 

User    Pass    

 

 

 

 

 

 

 

 

 

 

Features

 

Key Benefits

 

Screenshots

 

Standards Supported

 

Pricing

 

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

  

  

 

JavaScript to Java communication with WebRenderer

 

 

Click here to download the complete example code

 

Communicating from JavaScript back to Java

The WebRenderer
 WRUIprotocol allows for communication from JavaScript  to Java. Using the WRUI protocol you can directly communicate with Java and with some simple handler code you can drive methods, assign variables etc.

Example: (HTML file with JavaScript calling through to Java when an HTML Button is clicked)

                <HTML>
                <SCRIPT JAVASCRIPT>
                                function runJavaCode(){
                                                document.location = "wrui://runConsoleOutput";
                                }
                </SCRIPT>

                <HEAD><TITLE>WebRenderer - WRUI Test Page</TITLE></HEAD>
                <BODY>
                <BR>
                Press this button <INPUT type=button value='Click to execute' onclick='runJavaCode()'> execute                 JavaScript that will call a Java function
                </BODY>
                </HTML>

// Java
                 browser.addBrowserListener(new BrowserAdapter(){
                        public void onBeforeNavigate(BrowserEvent e){
                                //Catching the WRUI communication
                                if(e.getURL().equals("wrui://runConsoleOutput/")){
                                        //Calling a Java method using WRUI as a communication bridge
                                        runConsoleOutput();
                                }
                        }
                });

Click here to download the complete example code

  top

 

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

 

   News

 

 > 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