MikeL
|
| Posted: 07/20/2002, 10:00 AM |
|
Has anyone used Tigra's javascript calendar in CCS? If so, how did you make it work?
Thanks
|
|
|
 |
Adam
|
| Posted: 07/20/2002, 7:17 PM |
|
Does anyone tried to implement javascript or asp calander for date field in CCS. If yes, an example would be a big help for all of us....
|
|
|
 |
George L.
|
| Posted: 07/21/2002, 3:13 PM |
|
I got it to work in CCS, here is the quickest way to do it.
Using the latest build of Tigra's javascript package do the following:
1. Download and install all calendar files into your designated directory under your document root.
2. Let's say you have a record page which has some date fields that you want to use the calendar with.
2a. Create your record form using wizard or manually.
2b. Create text field for your date field as normal.
2c. Add an image link using CCS's Toolbox. (Note: you man need to extract Tigras file locally during development, if your Web Server is on another host, such as UNIX).
2d. Select the "cal" GIF provided with Tigra's Zip.
2e. In the URL section, add: javascript:cal1.popup(); (I will explain cal1 in a moment).
3. Go to your HTML mode of your page.
3a. Add the following to the "Head" Secion of your page:
<script language="JavaScript" src="/js/calendar1.js"></script><!-- Date only with year scrolling -->
<script language="JavaScript" src="/js/calendar2.js"></script><!-- Date only with year scrolling -->
3b. Add the following right after your form tag:
script language="JavaScript">
var cal1 = new calendar2(document.forms['prodrel'].elements['REL_DATE']);
cal1.year_scroll = true;
cal1.time_comp = false;
Format is as follows:
var (varname) new calendartype(document.forms['formname'].elements['inputname']);
varname = unique variable name
calendartype = the type of calendar format you wish to use ( ie. date w/time w/o time etc.)
formname = your form name on your page
inputname = the field containing the date.
That's it! Easy. Do this as to as many fields you want to populate using the calendar. Just make sure you specify unique variable names and formname/fieldnames. No special coding needed. No special functions needed as well. Should work cross-language.
If you need more details, feel free to email me with your question @x909gman@netscape.net
Regards,
g.
|
|
|
 |
TValladon
|
| Posted: 07/23/2002, 2:43 PM |
|
I have gotten this one working with CCS, and it seems to work good (and look good).
http://www.geocities.com/fuushikaden/PopupCalendar/sample.htm
TValladon
|
|
|
 |
MikeL
|
| Posted: 07/24/2002, 10:46 AM |
|
I have tried George's suggestion, but I still get "cal1 is undefined" error...even after correcting the code in step 3b. I am using asp w/templates and this still does not work for me. Does anyone have any other suggestions?
Thanks
|
|
|
 |
George L.
|
| Posted: 07/24/2002, 8:07 PM |
|
MikeL. Email me your html code. I'll take a look at it.
My example was bad.
Forgot to close my tags:
Here is corrected one syntax for after </form>:
<script language="JavaScript">
<!-- // create calendar object(s) just after form
tag closed
// specify form element as the only parameter
(document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as
you need for your application
//-->
<!-- Release Date Calendar -->
var cal1 = new
calendar2(document.forms['prodrel'].elements['REL_DATE']);
cal1.year_scroll = true;
cal1.time_comp = false;
</script>
|
|
|
 |
kangus
|
| Posted: 08/11/2002, 5:00 PM |
|
http://www.gotocode.com/disc_viewt.asp?mid=13776&
Checkout the above post, the Calendar pop up is in JavaScript so it should work with ASP/JSP/CF/PHP
|
|
|
 |
kangus
|
| Posted: 08/11/2002, 5:08 PM |
|
checkout this post http://www.gotocode.com/disc_viewt.asp?mid=13776&
A complete project with the modified Tigra JavaScript version 1.0b is included along with instruction to setup CCS to use the Calendar as an Extension in the CCS ToolBox. After installing you can insert a Calendar Popup by clicking the Calendar ICON in the ToolBox and editing the Name of the object.
|
|
|
 |