
Good Morning, All,
Suppose I have several calendars displayed for my user... They select their dates, then submit the form...
Of calendars A, B, C, D, and E, all have valid dates ( from my applications perspective ), except D, which has an invalid date.
Upon re-presenting the page to my user, how do I highlight the input date field for Calendar D to appear in RED, to make it easier for my user to
find which calendar date needs correcting.
Thanks,
Scot L. Diddle, Richmond VA
With the PRO version of the script you can attach the calendar to the existing static HTML input box.
You can then generate the style attributes with the server side script.
Thanks,
I read in your doc that I could contol color, but how do I id the name of the input box... When I "view source " of my HTML, all's I see is "new
calendar(cal_name, Tpl_name)"
Any Suggestions ?
Thanks, Scot
Hello All You Tigra Calendar Enthusiasts !
Well... Had to answer my own question...
It turns out that the HTML 'id=' of the input fields are generated via the javascript var: 'this.TC07' in the calendar.js file function:
'function calendar(TCL,TCK) { ' (in the " document.write('<input type="Text" ...') " statement... ). 'this.TC07' is the vlaue of the
'controlname': parm you specify when defining your calendar... Vis.:
| Code: |
| Code: |
| Code: |
you can use .showcal() method for that.
i.e.
A_CALENDARS[0].showcal();
Tigra Admin...
Thanks. That almost works... What I need to accomplish is that when a user opens a calendar, then decides to select a hidden div to display some
date-range calendars, and they fail to close the single date calendar, I need to close if for them.
Adding your code in a function called via "onChange=" parm in my "switch div" select, if the cal is open, it closes it, but if it is closed, it
opens it...
Is there some way to determine the name of the calendar(s) which is/are currently open, so I can do:
[pseudo-code]
if system finds that the punkin' user left cal[n] open while onChange is happening {
Do the "close option" of A_CALENDARS[n].showcal();
}
[/pseudo-code]
Thanks,
Scot L. Diddle, Richmond VA
property TC3b is the state indicator i.e.
if (A_CALENDARS[n].TC3b)
...
Tigra Admin,
Thanks for the input... I posted my solution here: http://www.softcomplex.com/forum/viewthread_4716/
Any idea how to revert the 'click me to close' icon without having to call .showcal() twice ?
If you have any ideas, please post under the new thread.
Thanks,
Scot L. Diddle, Happy Camper.
the calendar swaps the icon like this:
this.TC0x.src=this.TCK.caliconhide.src;
this.TC0x.src=this.TCK.caliconshow.src;
when done from outside of the calendar replace 'this' with 'A_CALENDARS[n]'