Board Logo

Close Modal calendar without clicking a button
ScotDiddle - 3/24/2008 at 06:48 PM

Hi Calendar Guru's...

It's Me again... This time I have to help my punkin' users...

My date application has two main functions... Let the user pick a date for an area of interest ( Mainframe through-put statistics ) to build a graph, or a date-range, one Tigra Calendar for each a beginning and an ending date.

Upon entry to the date HTML, I hide a div containing the date range selections. It the use indicates that he want to graph his data based on a date range, he clicks a radio button, and the div containing the single date calendar is hidden, and the div containing the two date range calendars is shown.

My problem is, if the user ( Bad User !!! BAD USER !!!!!) has a single modal calendar open when he hits the radio button to display the hidden date-range div, his single calendar stays visible, but his option to close the calendar (cal icon with an X) is now hidden... Is there any programmatic way to close the visible cal ? ( via an onClick="someFunction('closeSingleCalendar');" tied to my date-range select radio option.

Thank for writing this application for me... You all have been a great Help !!! :)

Scot L. Diddle, Richmond VA


tigra - 3/25/2008 at 02:36 AM

try calendarObject.showcal(); where calendarObject is the reference to calendar object.
you can get it during the initialization like var calendarObject = new calendar (...);


ScotDiddle - 4/8/2008 at 10:39 AM

Hello,

Thanks, but what command do I throw at the object to close is during some "onClick" process ?

Scot L. Diddle, Richmond VA


ScotDiddle - 6/25/2008 at 11:45 AM

See http://www.softcomplex.com/forum/viewthread_4716/ for the solution.

Scot


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/