ABOUT US

|

SUPPORT

|

BLOG

DOWNLOADS    

 

 

 

 


 

 

Prompt Dialogs

 

 

 

 

 

 

The WebRenderer Server Edition is designed to be able to run without a UI present on the machine upon which the code is running, and without user intervention.  Prompt dialogs can be problematic, in that they require interaction from the user.  By default the WebRenderer Server Edition will not show prompt dialogs but will fire the associated events to allow for interaction with these dialogs. To intercept such dialogs, use this code to trap and analyze prompt dialogs as they occur...

 

 

 

 

 

 

// Since headless servers may have no display device, prompt dialogs
// are undesirable.
  This shows how to disable them through the use of a prompt
// listener specifically blocking each prompt dialog as it is generated.

browser.addPromptListener( new PromptListener() {
              public void onPromptDialog(PromptEvent e) {
                            e.getDialogType();
                            e.getDialogText();
                            e.getDialogTitle();

              }
});

 

 

 Copyright © JadeLiquid Software - www.jadeliquid.com