Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Allan Joey Laluan 24 posts 105 karma points
    May 14, 2014 @ 20:03
    Allan Joey Laluan
    0

    Contour datepicker is undefined

    Hi,

    May I know the plugin used for the datepicker because I am encountering this error:
    undefined is not a function in line 36 of the file contourform.js

     $(".datepickerfield").datepicker({ dateFormat: contourDateFormat });

    Umbraco used is v7.1.1

    Hoping for you reply on this issue.

    Regards,

    Allan

  • Allan Joey Laluan 24 posts 105 karma points
    May 19, 2014 @ 04:02
    Allan Joey Laluan
    100

    Fixed my own issue. To those who experienced this, it's a jquery-ui plugin.

  • Matthew Hardesty 22 posts 73 karma points
    Nov 25, 2014 @ 07:48
    Matthew Hardesty
    0

    When rending a form, Contour's code includes a reference to jQuery. Basically, you need to include the required jQuery files in the head of the document in order for Contour forms to work.

    Initially, I had the scripts at the end of the document. Relocating them to the head resolved my console errors. In the head, I have:

    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.2/jquery-ui.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/bootstrap/3.3.0/bootstrap.min.js" type="text/javascript"></script> 
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    

    I'd rather include them in the footer to improve the speed of the page load, but I don't think that's an option with Contour because of way the scripts are referenced.

Please Sign in or register to post replies

Write your reply to:

Draft