Are there any pre-requisites for Contour to work? I'm thinking jQuery/jQueryUI, what version etc.
I'm trying to get the Contour date picker to display and nothing is happening, i want to debug on a vanilla site so i'd like to know what it needs at a minimum and go from there.
Yes there are javascript errors... very puzzling... here's what they are, from the start.
So I have my minmal site with no starter kit, installed and works fine. v6.1.3 (also tried 6.1.6 its exactly the same)
Installing Contour works fine, i always get could not load control error as below (seems odd) but deleting the script manager in formsdashboard.ascx fixes that.
If i create a Contour form and add it to a page then it doesnt work because... there is a script error... "jQuery is not defined" which means... i *do* need to include jQuery in my pages???
if ($(".datepickerfield").length > 0) { //checks if the page has a class with .datepickerfield
$(".datepickerfield").datepicker({ dateFormat: contourDateFormat });
}
disadvantage is that after upgrading you're losing the change
Contour pre-requisites
Are there any pre-requisites for Contour to work? I'm thinking jQuery/jQueryUI, what version etc.
I'm trying to get the Contour date picker to display and nothing is happening, i want to debug on a vanilla site so i'd like to know what it needs at a minimum and go from there.
For what its worth - i'm on Umbraco 6.1.3
Thanks
Paul
Hi Paul
No pre-requisites should be necessary since jquery is inserted when needed.
However I think there might be some issues since if you load jquery after Contour tries to load jquery ui then you will get an error.
Have you had a look in the console log of your web browser to see if it reveals some javascript errors?
Perhaps it's also a good idea to consult the installation documentation of Contour
/Jan
Yes there are javascript errors... very puzzling... here's what they are, from the start.
So I have my minmal site with no starter kit, installed and works fine. v6.1.3 (also tried 6.1.6 its exactly the same)
Installing Contour works fine, i always get could not load control error as below (seems odd) but deleting the script manager in formsdashboard.ascx fixes that.
If i create a Contour form and add it to a page then it doesnt work because... there is a script error... "jQuery is not defined" which means... i *do* need to include jQuery in my pages???
So adding jQuery into my template
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
It still doesn't work however i now get another more useful script error:
ignore: ":hidden"
});
Though i now have no idea what to do with this.
In case there is something in the 6.1.x version, i tried v7, installed a starter kit (txt) and then Contour, and... its *exactly the same error*
I'm having a similar problem with the datepicker not showing http://our.umbraco.org/forum/umbraco-pro/contour/49662-DatePicker-works-in-preview-but-not-on-web-form?p=0#comment177803
Looking at the java console, I'm getting two "jQuery is not defined" errors, one in the index page in this part
and the other in contourform.js
This is the js includes:
This code is in the preview
but isn't in the master template - I did try adding it but it didn't seem to make any difference.
oops, got some of the code outside the code tags
do I need to add the javascript files into the Scripts\libs?
I've changed line 36 in the contourform.js file in 'umbraco\Plugins\umbracoContour\scripts\Frontend'
to
disadvantage is that after upgrading you're losing the change
update: never mind this post, posted in the wrong forumpost, must be: http://our.umbraco.org/forum/umbraco-pro/contour/45030-clientside-validation-fails-on-contour-3
is working on a reply...