Link to home
Start Free TrialLog in
Avatar of gdemaria
gdemariaFlag for United States of America

asked on

cfwindow to open vertically centered, even when scrolling

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!
ASKER CERTIFIED SOLUTION
Avatar of Scott Bennett
Scott Bennett
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gdemaria

ASKER

Fantastic!  Thanks very much
Just want to say thank you for the script.  I was running into this issue as well and this worked great!