I am attempting to popup a cfwindow in the center (or near where I click the mouse) of a very long list of names. I have no problems getting the window to popup the first time in the middle of where ever I have scrolled to but after closing/hiding the window - subsequent clicks on different names shows the window at the same location as first opened and not in the middle of where the page has scrolled to. How do I get the window to always open at the center of the page regardless of where I have scrolled down to and regardless of how many times I have already clicked to pop open the cfwindow?
<cfwindow name="wRally" title="View Rally Hours"
source="index.cfm?action=rally_hours&id={mainform:DYN_FORM_VAL}"
height="500" width="500"
bodystyle="margin-left: 0px; margin-top: 0px; padding-top: 0px;
padding-left: 0px; background-color: ffffff;"
refreshonshow="True" center="true" closable="true" draggable="true" ></cfwindow>
<script language="javascript">
function viewRally(myVAL) {
mainform.DYN_FORM_VAL.value = myVAL;
ColdFusion.Window.show("wRally");
}
</script>
onClick="viewRally('EMPLOYEE_ID_123');"