Today is . Page created 04/03/07

Time Stamp Popup Date and Time Picker Calendar Form Picker

Try out the script with this demo form

European Date Format (dd-mm-yyyy)      
Select Date and Time:
Click Here to Pick up the timestamp
Select Date:
Click Here to Pick up the date

American Date Format (mm/dd/yyyy)      
Select Date and Time:
Click Here to Pick up the timestamp
Select Date:
Click Here to Pick up the date

Popup date picker is a JavaScript that makes it easy for your visitors to fill out the date/time field(s) of your form, by selecting the date from a popup calendar. Script allows to save the time for those internet/intranet developers who need intuitive, easy to use client-side timestamp input control.

We have tested the code in IE7.0, Firefox2.0.0.3, Opera9.10, Netscape8.1.2 and AOL Explorer1.5. This script worked well in all platforms with one (1) variation observed in Netscape8.1.2.

For Your Information For your Information:     Before we begin, we feel obligated to advise you that the above form is for all intensive purposes a "Stand Alone" script. In other words, it really does not do much of anything other than what you see. In order to make it function as designed, you need to incorporate it into a valid working form. If you do not have a good Solid Knowledge of HTML coding, javascripts, forms and reconfigurations, please "Do Not Attempt" this until you are Proficient in the aforementioned areas.

Depending on your knowledge of HTML and javascripts, this is a four (4) part copy and paste code that goes in both the <HEAD> and <BODY> sections (incorporated into a working form) of your document as well as uploading a few images into your directory. It also makes use of an external.js file* you need to save and upload into your directory then add a snipplet of code into the <HEAD> section to call the external.js file.

* This script has four (4) different external .js files. Two (2) for the European Format and two (2) for the American Format. Our above example shows all four (4) formats.

For Your Information For your Information:     The code for this script is very confusing the way the script site has it set up. The link for Run the code ] and See the code ] are done as a complete HTML document with more unnecessary material than you will know what to do with. Below, we have removed all the unnecessary material and will show you where and howto reconfigure the code.

The <HEAD> section of the code is basically straight forward. It contains four (4) different external .js files. Two (2) for the European Format and two (2) American Format. It is well documented for you to select which format you will require and which external.js file you will need to upload into your directory. This is the only script (code) you will need for the <HEAD> section.

  • <script language="JavaScript" src="ts_picker.js"></script>  
            <!-- Timestamp input popup (European Format) -->
  • <script language="JavaScript" src="ts_picker2.js"></script>
            <!-- Date input popup (European Format) -->
  • <script language="JavaScript" src="ts_picker3.js"></script>
            <!-- Timestamp input popup (American Format)-->
  • <script language="JavaScript" src="ts_picker4.js"></script>
            <!-- Date input popup (American Format)-->
  • In other words the only thing you require in the <HEAD> section of your document is one of the four snipplets of code to call one of the (4) external.js files to be uploaded into your directory. If your form requires more than one (1) format, then just upload accordingly.

    If you have uploaded one of the external.js files into a directory other than your root or top directory, you will have to change the path of the above to reflect the location.

  • If changing the path is a little confusing, grab the below link and it is explained in detail.
    Upload To Different Directory ]

    There are a few reconfigurations to be made within the external.js file (whichever one you need). These reconfigurations are dependent on two things.

    1. If you upload the required images to a directory other than your root or top directory.
    2. Depending on if you want to change the colors within the calendar itself.
    3. Since this is a large code, grab the below link to see where and howto make
      these possible reconfigurations within the external.js file.
      Reconfigurations To External.JS file ]

    Return Whence You Came ]

    The <BODY> section of code which you will be incorporating into a valid form is slightly more involved. There are four (4) separate codes for the four (4) different formats. Each one corresponds to the number (or lack of) the external.js file located in the <HEAD> section. If this is a little confusing, read on, hopefully we can totally clarify this for you.

    European Date Format (dd-mm-yyyy)

    The below external.js file will be associated with this textarea code
    <script language="JavaScript" src="ts_picker.js"></script>  
            <!-- Timestamp input popup (European Format) -->

    <!--- Insert Below Into Body Section Of Working Form --->

    <form name="tstest">
    Select Date and Time:<br>
    <input type="Text" name="timestamp" value="">
    <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp"></a>

    <!--- Insert Above Into Body Section Of Working Form --->

    Select Date and Time
    Click Here to Pick up the timestamp

    The below external.js file will be associated with this textarea code
    <script language="JavaScript" src="ts_picker2.js"></script>
            <!-- Date input popup (European Format) -->

    <!--- Insert Below Into Body Section Of Working Form --->

    <form name="tstest">
    Select Date:<br>
    <input type="Text" name="date" value="">
    <a href="javascript:show_calendar2('document.tstest.date', document.tstest.date.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>

    <!--- Insert Above Into Body Section Of Working Form --->

    Select Date:
    Click Here to Pick up the date

    American Date Format (mm/dd/yyyy)

    The below external.js file will be associated with this textarea code
    <script language="JavaScript" src="ts_picker3.js"></script>
            <!-- Timestamp input popup (American Format)-->

    <!--- Insert Below Into Body Section Of Working Form --->

    <form name="tstest">
    Select Date and Time:<br>
    <input type="Text" name="timestamp_am" value="">
    <a href="javascript:show_calendar3('document.tstest.timestamp_am', document.tstest.timestamp_am.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp"></a>

    <!--- Insert Above Into Body Section Of Working Form --->

    Select Date and Time:
    Click Here to Pick up the timestamp

    The below external.js file will be associated with this textarea code
    <script language="JavaScript" src="ts_picker4.js"></script>
            <!-- Timestamp input popup (American Format)-->

    <!--- Insert Below Into Body Section Of Working Form --->

    <form name="tstest">
    Select Date:<br>
    <input type="Text" name="date_am" value="">
    <a href="javascript:show_calendar4('document.tstest.date_am', document.tstest.date_am.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>

    <!--- Insert Above Into Body Section Of Working Form --->

    Select Date:
    Click Here to Pick up the date

    Notice     On the above how the coresponding number (or lack of) 2, 3 or 4 is associated with each individual code. Each specific textarea calls a specific externsl.js file. This is because each external.js file is slightly different in order to use the correct format for each textarea. Also notice the cal.gif. This is one of the images* you need to upload into your directory and change the path if you have it in any other directory other than your "Root" or top directory.

    Point Of Information     Point Of Information     If you notice in the above, the form has a specific name <form name="tstest"> and is also used within the textarea code. If you are going to change the name of the form, then you need to reflect this in all the above color coded sections or you will get an error message in the task bar and the popup calendar will " Not " appear and you will wonder why. If this is slightly unclear, see the below example.

    Default

    <form name="tstest">
    Select Date:<br>
    <input type="Text" name="date_am" value="">
    <a href="javascript:show_calendar4('document.tstest.date_am', document.tstest.date_am.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>

    Reconfigured

    <form name="tstest6">
    Select Date:<br>
    <input type="Text" name="date_am" value="">
    <a href="javascript:show_calendar4('document.tstest6.date_am', document.tstest6.date_am.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>

    Notice in the above how we followed the pattern in renaming the form. We changed the opening form name and also changed the name in two (2) places within the code itself.

    *     The zip file that you will be downloading will contain thirteen (13) images. In all actuality, you will only need to upload three (3). All the others are of no consequence are are not needed. To the right are the little icon images you will need to upload.

    <!-- Required Icons -->

    cal.gif next.gif next.gif

    For Your Information For your Information:     The next thing we shall cover is the downloading of the "Zip" file from the script site. The only place you will see anything to download (including the external.js files) is from the link for Run the code ]. You will see the below:

    Download zip archive Download all versions with demo page in zip archive

    The only problem with that is the zip file only contains three (3) external.js files and not the required four (4) as in our example. To rectify this, we have supplied the four (4) external.js files for you to download. Or if you prefer, we have the external.js files along with the <HEAD> and <BODY> sections of code with the three (3) images in a convenient zip file if you so prefer.

    European Format Date and Time.JS File ]
    European Format Date.JS File ]
    American Format Date and Time.JS File ]
    American Format Date.JS File ]
    Convenient Zip File ]

    On A Final Note     The last thing we shall cover is the "Reset" button you see in our example. This is "Not" part of the script. We added it just as a convenience for you as you are checking out the example.

    We hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
    Get Code Here ]   [ Rate This Page ]  

  • Talk Live To A Support Technician

    Search Our Site By Individual letter

    A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ G ]  [ H ]  [ I ]  [ J-K ]  [ L ] 
    M ]  [ N-O ]  [ P-Q ]  [ R ]  [ S ]  [ T ]  [ U-V ]  [ W ]  [ X-Y-Z ] 

    Little Tips Directory

    Page 1  ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5  ] [ Page 6  ] [ Page 7  ]

    Index Page 1 ] [ Index Page 2 ] [ Index Page 3 ] [ Index Page 4 ] [ Index Page 5 ]
    Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ]
    Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ] [ Form Index ]
    2001 ] [ 2002 ] [ 2003 ] [ 2004 ] [ 2005 ] [ 2006 ] [ 2007 ]
    Disclaimer ]

    News Letter Archives ] [ Navigation Page ] [ Archives Of Published Material ]
    Link To Us ] [ Alphabet Index ] [ Feedback ] [ On Line Support ] [ FAQ ]
    Webmaster Utilities ] [ Casino ] [ Banner Exchange ] [  Advanced Site Search ]

    If you are part of the ever growing number of webmasters who enjoy sharing your knowledge with others on web design, join The Consigliere Ltd. web ring to broaden your scope of exposure.
    Join Today

    This Site Was Built And Is Maintained Exclusively by
    The Webmaster @ Consigliere Ltd.

    Copyright © Consigliere Ltd., All Rights Reserved. 2001-