Intersoft WebDesktop Documentation
Showing DialogBox at client side
Send Feedback
Intersoft WebDesktop > WebDialogBox > Tutorials > Showing DialogBox at client side

Glossary Item Box

Objectives

This tutorial will show how to call a WebDialogBox instance, which you have designed using the previous tutorials, at client side using Javascript. 

Following are the steps to call a WebDialogBox instance :

  1. See Creating Simple DialogBox to create a simple WebDialogBox.
  2. Drag a HTML Button to the WebForm (You can use other control to trigger the client side event)



  3. Create a javascript function and attached it to the button's onclick event. 

    Script Copy Code
    <script language="javascript">
    function viewWDBAbout()
    {
    var dlgBoxAbout = ISGetObject("WebDialogBox1");
    dlgBoxAbout.ShowDialog();
    }
    </script>

    <input id="Button1" type="button" value="View Simple WebDialogBox" onclick="viewWDBAbout()"/>

  4. In your browser, you will get something like this.



When the WebDialogBox is showed, you can not click the controls behind it, as an implementation of a true Desktop DialogBox behavior).





In integrated mode with WebDesktop, we need to specify the IntegratedToDesktop Property to true

          

© 2012 Intersoft Solutions Corp. All Rights Reserved.