Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: How To Get The Calendar To Center
Justin
Junior Member

Posts: 6
Registered: 10/2/2006
Location: San Diego
Member Is Offline
posted on 10/2/2006 at 01:58 PM Reply With Quote
How To Get The Calendar To Center


Currently I am using Calendar and love it. Two things bother me though. Presently the window does not open up in the center of the window, it seems to open to the middle left.

Secondly I would like to have a link under the calendar that says Today, which when clicked simply inserts the current date into the field. THis is merly a shortcut and convince feature.

Thanks much!
View User's Profile View All Posts By User U2U Member
Justin
Junior Member

Posts: 6
Registered: 10/2/2006
Location: San Diego
Member Is Offline
posted on 10/25/2006 at 04:14 PM Reply With Quote

Here is how to center the calendar popup window:

Modify calendar_popup.js at about line 38 to the following:

leftPos = 0
topPos = 0
if (screen) {
leftPos = (screen.width / 2) - (200 / 2);
topPos = (screen.height / 2) - (203 / 2);
}

var obj_calwindow = window.open(
'/includes/calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,
'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+
',status=no,resizable=no,top=' + topPos + ',left=' + leftPos + ',dependent=yes,alwaysRaised=yes'
);

Done. :) I would include this in the next realease, really a nice feature.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004