Could someone point me in the right direction to find out more about how to change where the popup boxes in uReserve are positioned? Users have complained that when they click on a resource to add a reservation, the box that pops up appears on the lower right with the bottom half cut off of the screen. Is there a way to force the popup to appear centered, so that no matter the screen resolution it would always be in the center?...
Thanks in advance for any advice you could give.
LA County Office of AIDS Programs and Policy
I'm not aware of any feature to center the window... but there are some features to specify the X and Y locations of the window. They are:
For Netscape: "screenX" and "screenY"
For IE: "left" and "top"
So you could technically edit the "ureserve.pl" script and add some coordinates in there. Here's how:
STEP 1: Make a backup of your current ureserve.pl script... just in case.
STEP 2: Open your ureserve.pl script in any text editor such as WordPad.
STEP 3: Do a search on the following text:
(There will actually be two occurances... but you will just be interested in the first occurance).
STEP 4: On that line with the first window.open, you will see where the "features" are set to:
Just add the new features in there like this:
(I just used 50 in this example...so that the window will always be positioned at the coordinates 50,50...which should at least show up on all screen resolutions).
STEP 5: Save the script (as TEXT if your editor asks)... and try it out!
That did the trick. Now no matter the screen resolution of a user, the popup appears in the center of the screen.
Thanks, as always, for your prompt and insightful help.
LA County OAPP