Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Can't set the ContentUrl (Client Side)
posted

Hi all

I can't set the Content URL of a WebDialogWindow !

Setting the Url in Design time works, but I need to change the Url during RunTime.

I use this Function

        function spiderSelected(spiderJobID) {
            //  alert(spiderJobID);

            var dialog = $find('<%=dlgDetails.ClientID%>');

            if (!dialog)
                return;

            dialog.show();

            var cp = dialog.get_contentPane();

            cp.set_contentUrl('../Secure/SpiderDetails.aspx?ID=' + spiderJobID);

            dialog._header.setCaptionText("Details");

        }

The WebDialog is Defined like this

                <ig:WebDialogWindow ID="dlgDetails" runat="server" Height="300px" InitialLocation="Centered"
                    StyleSetName="RubberBlack" Width="400px" Modal="True" WindowState="Hidden">
                    <Resizer Enabled="True" />
                </ig:WebDialogWindow>

 

Any Idea what's wrong here ?

 

Thanks
Peter