Copied to clipboard

Flag this post as spam?

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


  • MK 426 posts 902 karma points
    Jan 10, 2013 @ 12:04
    MK
    0

    Scripting Error - contourform.js

    Hi there,

    Im getting the following script error:

     

     

    Any Idea?

    Thanks

    mkariti

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 10, 2013 @ 13:31
    Tim Geyssens
    100

    Did you add the js scripts?

    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/jquery-ui.js"></script>  
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.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>   
     

    It needs jquery, jquery ui, jquery validate and jquery validate unobtrusive

     

    Pretty sure your error is because jquery validate is missing

  • Mike Chambers 621 posts 1203 karma points c-trib
    Jan 11, 2013 @ 12:44
    Mike Chambers
    0

    To add to this..

    Only get the js error if inserting a umbracoContour.RazorRenderForm, not the umbracoContour.RenderForm

  • Mike Chambers 621 posts 1203 karma points c-trib
    Jan 11, 2013 @ 12:48
    Mike Chambers
    0

    Also slighlty different functionality on the validation indications between usercontrol and razor, for usercontrol the labels are also turned red, for razor they aren't ;-)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 11, 2013 @ 13:13
    Tim Geyssens
    0

    Added to our issue tracker http://issues.umbraco.org/issue/CON-210 :)

  • MK 426 posts 902 karma points
    Jan 12, 2013 @ 13:29
    MK
    0

    Hi Tim,

    Why do i need to manually add those files?

    regards,

    mkariti

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 14, 2013 @ 10:07
    Tim Geyssens
    0

    Just to avoid having duplicates since most will already have jquery ...

  • Mike Chambers 621 posts 1203 karma points c-trib
    Jan 14, 2013 @ 10:24
    Mike Chambers
    0

    umbraco.library.addJquery() ?

  • MK 426 posts 902 karma points
    Jan 14, 2013 @ 11:16
    MK
    0

    Great Thanks

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 14, 2013 @ 11:27
    Tim Geyssens
    0

    @Mike, only works if you have a head with runat server attribute... (not an option when in mvc rendering engine)

  • Mike Chambers 621 posts 1203 karma points c-trib
    Jan 14, 2013 @ 11:40
    Mike Chambers
    0

    ah... haven't made the move to mvc yet... Is there no similar mechanism for a macro to only include a js include if it hasn't already been included?

    maybe the client dependancy framework comes to our aid?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies