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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -