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: close model cal on focus?

Posts: 1
Registered: 5/30/2007
Member Is Offline
posted on 5/30/2007 at 09:41 AM Reply With Quote
close model cal on focus?

Hi, Using the model mode of the Pro version, and i want to enable the calendar to close if the user clicks anywhere on the screen, as in if the user clicks off the cal area then the calendar will close?

How is this done?

View User's Profile View All Posts By User U2U Member

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 5/30/2007 at 04:20 PM Reply With Quote

you can save the reference to the calendar object in a variable:

var myCal = new calendar(CAL_INIT1, CAL_TPL1);

then you can use this reference to call code that hides the calendar:

if (myCal.TC3b) myCal.showcal()

so what's left is to detect the event you want (i.e. click anywhere on the screen) and call this code. Here is where you may experience the problem as your HTML document will not be notified about the events beyond the browser window.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
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