0

I want to add hyperlink which directs to another page as text to radconfirm. The code works fine if the hyperlink is removed but the confirm window never shows up if present.

Please find the code below:

    strLink = "\conditions\terms.aspx"

    strMsg += "are you Sure?"
    strMsg += "<br/>"
    strMsg += "<i>"
    strMsg += "please check conditions"
    strMsg += "<a href='" + strLink + "' target='_blank'>"
    strMsg +=  "here" + "</a>"
    strMsg += "</i>"

radWindowMngr.RadConfirm(strMsg, "Update", 330, 100, Nothing, "")

4

1 回答 1

0

我尝试使用您的代码,但无法复制此问题。

<head runat="server">
    <title></title>
    <script>
        function opnePopup() {
            var strLink = "\conditions\\terms.aspx"

            var strMsg = "are you Sure?"
            strMsg += "<br/>"
            strMsg += "<i>"
            strMsg += "please check conditions "
            strMsg += "<a href='" + strLink + "' target='_blank'>"
            strMsg += "here" + "</a>"
            strMsg += "</i>"
            radconfirm(strMsg, confirmCallBackFn, 330, 180, null, 'Client RadConfirm', '');
            return false;
        }

        function confirmCallBackFn(args) {
            alert(args);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>


            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>
            <button style="width: 200px;" onclick="return opnePopup();">
                radconfirm from client</button>
        </div>
    </form>
</body>
</html>

注意:请在 URL (strLink) 中使用双斜杠。

在此处输入图像描述在此处输入图像描述

于 2013-10-16T05:32:50.313 回答