teamcfadvance / ValidateThis

An object oriented validation framework for ColdFusion objects
http://www.validatethis.org
44 stars 32 forks source link

Detect jQuery + plugins #33

Open aliaspooryorik opened 13 years ago

aliaspooryorik commented 13 years ago

Detect if jQuery or the jQuery validation plugin exists. Only load if they don't exist. Something like:

if (typeof jQuery=="undefined"){ document.write(""); } if (typeof jQuery.plugins.validate=="undefined"){ document.write(""); }

aliaspooryorik commented 12 years ago

This is a "nice to have" feature which is largely obsolete if the end developer uses the JSIncludes = false setting, so not important. I've not found a method of doing this which is 100% reliable.