0

Coldfusion javascript関数を使用してcfwindowを作成し、中央に配置しようとしています。私はTのドキュメント/チュートリアルに従い、CF8とCF9でこれを試しましたが、中央に配置できません。私は何が間違っているのですか?

<a href="javascript:ColdFusion.Window.create('createdWindow','Window Name',
'test.cfm',{modal: true, center: true});">Create Bound Window</a>

ありがとう :)

4

1 に答える 1

1

以下の関数を使用して を作成しますCfWindow。タグで関数create_Window()を呼び出します。<a>

function create_Window() {
    win = name + "_os_" + Math.round(Math.random() * 10000000000);

    try
    {
        twin = ColdFusion.Window.getWindowObject(winname);
        twin.destroy(true);
    }
    catch (e)
    {
        // do nothing because the window does not exist
    }

    ColdFusion.Window.create(
        win,
        'Request Page',
        'windowPageName.cfm?windowname='+win,
        {
            height:600,
            width:700,
            modal:true,
            closable:true,
            draggable:true,
            resizable:true,
            center:true,
            initshow:true
        }
    )

    winname=win;
}
于 2011-05-04T10:14:59.150 に答える