Copied to clipboard

Flag this post as spam?

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


  • MK 429 posts 906 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

  • Comment author was deleted

    Jan 10, 2013 @ 13:31

    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 636 posts 1253 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 636 posts 1253 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 ;-)

  • Comment author was deleted

    Jan 11, 2013 @ 13:13

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

  • MK 429 posts 906 karma points
    Jan 12, 2013 @ 13:29
    MK
    0

    Hi Tim,

    Why do i need to manually add those files?

    regards,

    mkariti

  • Comment author was deleted

    Jan 14, 2013 @ 10:07

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

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

    umbraco.library.addJquery() ?

  • MK 429 posts 906 karma points
    Jan 14, 2013 @ 11:16
    MK
    0

    Great Thanks

  • Comment author was deleted

    Jan 14, 2013 @ 11:27

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

  • Mike Chambers 636 posts 1253 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