Hi Lynn,
It doesn't link to the CDN by default, it should link to the included JS files, although these are a little behind the current versions of jQuery and jQuery Validation plugin. I generally use newer versions of those files than the bundled ones as jQuery is what I use anyway for other parts of the sites I work on and I can use Bower or something if I want to.
So my setup would be something like:
Application.cfc...
var VTConfig = { definitionPath="/model/", JSIncludes=false };
var ValidateThis = new lib.ValidateThis.ValidateThis(VTConfig);
... stick it in the BeanFactory or Application scope depending on how you write your code
Then in my views...
<!--- load JS assets from wherever --->
<script type="text/javascript" src="whatever/js/jquery.min.js"></script>
<script type="text/javascript" src="whatever/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="whatever/js/jquery.field.min.js"></script>
<!--- customise jQuery Validation plugin settings --->
<script type="text/javascript">
jQuery(function($){
// set up validator defaults
jQuery.validator.setDefaults({
errorClass: 'field-error-message',
validClass: 'field-isvalid',
errorElement: 'label'
});
});
</script>