ABOUT US

|

SUPPORT

|

BLOG

DOWNLOADS    

 

 

 

 


 

 

When to call WebRenderer DOM methods

 

 

 

 

 

 

The WebRenderer DOM is a large tree-like structure that provides access to the underlying document. Because of the size and number of elements that have to be populated the DOM methods must be called after the NetworkEvent onDocumentComplete has fired. Calling DOM methods such as IBrowserCanvas getDocument before onDocumentComplete may return a DOM document that is not fully populated.

Example:

browser.addNetworkListener(new NetworkAdapter() {
        public void onDocumentComplete(NetworkEvent e) {
                // Get the DOM Document
                IDocument document = browser.getDocument();
        }
});


 

 

 

 Copyright JadeLiquid Software - www.jadeliquid.com