자바 스크립트는 ColdFusion을 중심으로하지 않는 CFWindow를 생성했습니다

StackOverflow https://stackoverflow.com/questions/5045602

  •  15-11-2019
  •  | 
  •  

문제

CFWINDOW를 만들고 CFWINDOW를 만들고 센터를 만들려고합니다.나는 문서화 / 자습서를 눌러 CF8과 CF9에서 이것을 시도했지만 센터에 그것을 얻을 수는 없습니다.내가 뭘 잘못하고 있니?

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

감사합니다 :)

도움이 되었습니까?

해결책

Use the function below to create a CfWindow. Call function create_Window() in <a> tag.

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;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top