cfwindow to open vertically centered, even when scrolling
Posted on 2008-01-25
I have a long list of data in a table. When clicking on a row, I use cfwindow to pop-up more information about the clicked item.
The problem is that when the user scrolls down the page, cfwindow pops open the window way up at the top of the page, out of view and the user doesn't know it has opened. So I need the pop-up window to open (or reposition) to where the center of the screen vertically, even if the user has scrolled down the page.
It seems that cfwindow will open pretty well the first time, but will always re-open to that same location each time after the first one. So I may have to move it after open.
Thanks for any ideas!