The Robertson Team


 

 
 
 
 
 
  Programmers' Tools >  The Free Stuff >  GridMonger >  FAQ >  How can I get ''The coolest DHTML calendar widget'' to work with GridMonger?
 

How can I get ''The coolest DHTML calendar widget'' to work with GridMonger?

NOTE:  Beginning with v4.31 Step 2 is no longer necessary.  If you have an older installation and want to enable the old calendar system just undo the mods found in Step 2 (the old code is still in each file, commented out).

The Coolest DHTML Calendar Widget is just what its name implies.  Its head-and-shoulders above anything else available, and is free (the author requests a well-deserved donation, and we encourage you do give some up).  At users' request, we have built in support for this tool into GridMonger so you can use it instead of the free calendar bundled inside of the GridMonger distribution file.

You will need the following:

  • GridMonger 4.21 or better.
  • The calendar widget.  Download it directly from the author from the link above.

There are three steps to the installation process:

  1. Extract the calendar release files to a new folder under the GridMonger root named /jscalendar/.  Make sure this is the root of the calendar files... some unzipper programs will place the files in another folder underneath /jscalendar/.  Don't let this happen.
     
  2. Modify the following files:
    1. /includes/gm_insert.cfm:  <cfcase value="D"> (date field type) begins on or about Line 40.  Inside this case you will see two blocks of code.  The top block belongs to the Dynarch.com widget.  The bottom block belongs to the calendar bundled with GM.  The top block is commented out.  Uncomment the top block and comment out the bottom block.
    2. /includes/gm_editor2.cfm:  Same situation and procedure as Item A above.  This time the date field case starts on or about Line 71.
    3. /includes/gm_editor.cfm:  Same situation and procedure as Item A above.  This time the date field case starts on or about Line 82.
    4. /includes/gm_edit.cfm:  Same situation and procedure as Item A above.  This time the date field case starts on or about Line 43.
    5. /includes/gm_insert_multi.cfm: Same situation and procedure as Item A above.  This time the date field case starts on or about Line 31.
    6. /includes/gm_edit_multi.cfm: Same situation and procedure as Item A above.  This time the date field case starts on or about Line 65.
    7. /includes/gm_tophtml.cfm: On or about Line 102 you will see two blocks of javascript (and a style sheet call).  The top block is commented out and belongs to the Dynarch.com widget.  The bottom block belongs to the calendar bundled with GM.  Uncomment the top block and comment out the bottom block.
       
  3. You're done.  Fire up expandeddemo.cfm.  If you did everything right the new calendar should be working fine, although it will be inserting a date AND time value into this demo.  Refer to the Dynarch.com calendar's extensive documentation on how to customize the calendar setup.

The Robertson Team, TheKing@mysecretbase.com
1.559.360.1717 


HostMySite.com is a leader in ColdFusion web hosting and managed dedicated servers.