我正在尝试使用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>谢谢:)
发布于 2011-05-04 18:14:59
使用下面的函数创建CfWindow。在<a>标签中调用函数create_Window()。
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;
}https://stackoverflow.com/questions/5045602
复制相似问题