Re: json - check username
I am trying this simple json code http://ja.mesbrown.com/2009/10/coldfusion-and-jquery-using-ajax-to-call-a-cfc-and-return-json/ and no matter where I put my CFC, I get the following message. Any thoughts? ReferenceError: $ is not defined $.getJSON(validate.cfc, { That's a JavaScript/jQuery error. Do you have a recent version of jQuery included in the page? Have you redefined the dollar sign using jQuery.noConflict() or something like that? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356589 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: json - check username
That seems to indicate that jQuery isn't loaded, or perhaps you have another js library that is in conflict with jQuery. On Wed, Aug 28, 2013 at 12:55 PM, Torrent Girl moniqueb...@gmail.comwrote: Hello I am trying this simple json code http://ja.mesbrown.com/2009/10/coldfusion-and-jquery-using-ajax-to-call-a-cfc-and-return-json/ and no matter where I put my CFC, I get the following message. Any thoughts? ReferenceError: $ is not defined $.getJSON(validate.cfc, { ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356590 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: json - check username
Hi Monique, you need to make sure that you are definately loading JQUERY, otherwise the $ function wont exist. On Wed, Aug 28, 2013 at 5:55 PM, Torrent Girl moniqueb...@gmail.com wrote: Hello I am trying this simple json code http://ja.mesbrown.com/2009/10/coldfusion-and-jquery-using-ajax-to-call-a-cfc-and-return-json/ and no matter where I put my CFC, I get the following message. Any thoughts? ReferenceError: $ is not defined $.getJSON(validate.cfc, { ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356591 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm