Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there,
Im getting the following script error:
Any Idea?
Thanks
mkariti
Comment author was deleted
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
To add to this..
Only get the js error if inserting a umbracoContour.RazorRenderForm, not the umbracoContour.RenderForm
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 ;-)
Added to our issue tracker http://issues.umbraco.org/issue/CON-210 :)
Hi Tim,
Why do i need to manually add those files?
regards,
Just to avoid having duplicates since most will already have jquery ...
umbraco.library.addJquery() ?
Great Thanks
@Mike, only works if you have a head with runat server attribute... (not an option when in mvc rendering engine)
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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Scripting Error - contourform.js
Hi there,
Im getting the following script error:
Any Idea?
Thanks
mkariti
Comment author was deleted
Did you add the js scripts?
It needs jquery, jquery ui, jquery validate and jquery validate unobtrusive
Pretty sure your error is because jquery validate is missing
To add to this..
Only get the js error if inserting a umbracoContour.RazorRenderForm, not the umbracoContour.RenderForm
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
Added to our issue tracker http://issues.umbraco.org/issue/CON-210 :)
Hi Tim,
Why do i need to manually add those files?
regards,
mkariti
Comment author was deleted
Just to avoid having duplicates since most will already have jquery ...
umbraco.library.addJquery() ?
Great Thanks
Comment author was deleted
@Mike, only works if you have a head with runat server attribute... (not an option when in mvc rendering engine)
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?
is working on a reply...