0

尝试在提交/发布操作上使用 jQuery 显示弹出窗口。

使用freetextbox并且不打算更改它。

在我的 aspx 页面中,添加了以下脚本以查找内容是否发生变化。

function checkForContentChanges(action) {
        debugger;
        var consentTextBox = "";
        if (FTB_API != undefined && FTB_API != null) {
            objFTBControl = FTB_API['ConsentFreeTextBox'];
            if (objFTBControl) {
                var consentTextBox = objFTBControl.GetHtml;
            }
        }else {
            consentTextBox = $('#ConsentFreeTextBox').html();
        }

        ////var consentTextBox = $('#ConsentFreeTextBox').html();
        var consentContent = $('#hdnConsentContent').val();
        if (consentTextBox != consentContent) {
            ShowErrorPopup(action);
        }
        else {
            return true;
        }
    } 

我有一个隐藏变量,用于存储名为“hdnConsentContent”的页面加载内容,以便在发布操作时进行内容比较

它不工作并显示我的弹出窗口。

提前感谢您的帮助。

4

0 回答 0