Date Picker for HTML

Hi Experts,

I am trying to use the Date Picker from http://keith-wood.name/calendarspicker.html 

I downloaded all files, but as mentioned in my code and assembled the following test page, but I still get Object doesn't support property or method 'calendarsPicker'  on line 26.

here is my test code
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="../styles/jquery.calendars.picker.css">
    </head>
    <body>
        <form>
            date: <input type="text" id="txtDate" name="txtDate" value="04/15/2015">
        </form>
        
        <script type="text/javascript" src="../utilities/jquery.js"></script>
        <script type="text/javascript" src="../utilities/jquery.calendars.min.js"></script>
        <script type="text/javascript" src="../utilities/jquery.plugin.js"></script>
        <script type="text/javascript" src="../utilities/jquery.calendars.picket.min.js"></script>

        <script type="text/javascript">
            jQuery(function($){
                $('#txtDate').calendarsPicker();
            });
        </script>
        
    </body>
</html>

Open in new window


Any help will be greatly appreciated
APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeff DarlingDeveloper AnalystCommented:
it looks like you have a typo on line 22.  Should be picker instead of picket.



<!DOCTYPE html>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="../styles/jquery.calendars.picker.css">
        <script type="text/javascript" src="../utilities/jquery.js"></script>
        <script type="text/javascript" src="../utilities/jquery.calendars.min.js"></script>
        <script type="text/javascript" src="../utilities/jquery.plugin.js"></script>
        <script type="text/javascript" src="../utilities/jquery.calendars.picker.min.js"></script>
        <script type="text/javascript">
           $(function() {
                $("#txtDate").calendarsPicker();
            });
        </script>
    </head>
    <body>
        <form>
            date: <input type="text" id="txtDate" name="txtDate" value="04/15/2015">
        </form>
    </body>
</html>

Open in new window

APD TorontoSoftware DeveloperAuthor Commented:
Thanks, but now I pasted your code and I am getting

Object doesn't support property or method 'determineDate'

On the line 40 of jquery.plugin.js

I know that this is in the downloaded file, but on their website it works.

Thank you
APD TorontoSoftware DeveloperAuthor Commented:
It does not have to be this particular Date picker, I can use any. However, I would need to highlight weekend dates and start the calendar from Monday.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

APD TorontoSoftware DeveloperAuthor Commented:
On the other hand,. if you download the .zip from the URL and run the calendarsPickerBasic.html, you'll see it works.

I just copied the minimum files mentioned, without any customization.

What am I doing wrong?
Rainer JeschorCommented:
Hi,
I think you also miss this reference:
<script src="jquery.calendars.plus.js"></script>

Open in new window

HTH
Rainer
Rainer JeschorCommented:
The following minimal HTML works (sorry - I had to remove all the kind of subfolders):
<!DOCTYPE html>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="jquery.calendars.picker.css">
    </head>
    <body>
        <form>
            date: <input type="text" id="txtDate" name="txtDate" value="04/15/2015">
        </form>
        
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="jquery.calendars.min.js"></script>
		<script type="text/javascript" src="jquery.calendars.plus.js"></script>
        <script type="text/javascript" src="jquery.plugin.js"></script>
        <script type="text/javascript" src="jquery.calendars.picker.min.js"></script>

        <script type="text/javascript">
            jQuery(function($){
                $('#txtDate').calendarsPicker();
            });
        </script>
    </body>
</html>

Open in new window


Works in Chrome and IE11.

HTH
Rainer

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.