TargetUrl - Dialogboxes

1 reply. Last post: April 15, 2010 4:14 AM by Andi Santoso
Tags :

Hello

I make my first experience with Aqua and ASP.Net.
When I define a WebFishEyeButton, I can use TargetURLProperty to display target page (eg Default.aspx).

But I would not open another window (please see FishEyeButton-TargetUrl.png).
Can I instead e.g. display a dialog box? What are the options?

In the Silverlight examples on our website beautiful boxes are displayed. If this is only possible with Silverlight.

Thank you for an explanation and possibly a little demo.

Michael

Answers

Hello Michael,

     Actually, we do have a client side event when the button is clicked. The workaround for this scenario is by creating a client side event of OnButtonClick then in side of it we can do show a WebDialogBox.

     Here is the snippet in order to do so:

        function WebFishEye1_OnButtonClick(controlId, button) {
            var WebFishEye1 = ISGetObject(controlId);
            var dlbBox = ISGetObject("WebDialogBox1");
            setTimeout(function() {
                if (button.ItemName == "btniTunes")
                    dlbBox.ShowDialog();
            }, 300);
            return true;
        }

      In this snippet, the dialogbox will show up when the button iTunes has been clicked. I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

All Replies

Hello Michael,

     Actually, we do have a client side event when the button is clicked. The workaround for this scenario is by creating a client side event of OnButtonClick then in side of it we can do show a WebDialogBox.

     Here is the snippet in order to do so:

        function WebFishEye1_OnButtonClick(controlId, button) {
            var WebFishEye1 = ISGetObject(controlId);
            var dlbBox = ISGetObject("WebDialogBox1");
            setTimeout(function() {
                if (button.ItemName == "btniTunes")
                    dlbBox.ShowDialog();
            }, 300);
            return true;
        }

      In this snippet, the dialogbox will show up when the button iTunes has been clicked. I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

All times are GMT -5. The time now is 3:39 AM.
Previous Next