JavaScriptがColdFusionを中心にしていないCFWindowを生成しました
-
15-11-2019 - |
質問
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>
.
ありがとうございました:)
解決
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;
}
所属していません StackOverflow