Javascript Generated CFWindow Not Centering In Coldfusion -
i trying use coldfusion javascript function create cfwindow , center it. i've followed documentation/tutorials t , i've tried in cf8 , cf9 can't center. doing wrong?
<a href="javascript:coldfusion.window.create('createdwindow','window name', 'test.cfm',{modal: true, center: true});">create bound window</a>
thanks :)
use function below create 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) { // nothing because window 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; }
Comments
Post a Comment