5

次のコードを含むコンポーネントフィールドのカスタムURLに接続しています

        function SaveAndClose()
        {
            var newValue = new Array();
            newValue[0] = "/feed.ashx?type="+ $("#Type").val() + "&user="+ $("#User").val();
            window.returnValue = newValue;
            self.close();
        }
       document.write("Current Value:");
       document.write(window.dialogArguments.fieldValue);

SaveAndClose関数は完全に機能し、値をコンポーネントに送り返しますが、window.dialogArguments.fieldValueは常にundefinedを返します。

4

1 に答える 1

4

customArgumentsdialogArgumentsのプロパティを読み取る必要があります。

document.write(window.dialogArguments.customArguments.fieldValue);
于 2013-01-21T13:23:57.183 に答える