[support] Enabling jquery/AJAX (unknow is not a function)
Jamie Holly
hovercrafter at earthlink.net
Wed Nov 14 00:39:29 UTC 2012
In Drupal 7, jQuery runs in no-conflict mode, so you can't use $ unless
it's wrapped. Change $ to jQuery.
Jamie Holly
http://www.intoxination.net
http://www.hollyit.net
On 11/13/2012 7:19 PM, Tim Johnson wrote:
> Using drupal 7.16 on Mac OSX 107, bitnami install.
> I have created a test page with just the following :
> [code]
> <DIV ID="content"></DIV>
> <a href="#"
> onclick="$('#content').load('http://localhost/cgi-bin/cgitest.py');">Take
> me away</a>
> [/code]
> When I click on the rendered link, I get the following javascript
> error:
> "Uncaught TypeError: undefined is not a function onclick"
> from Chrome.
>
> Being a drupal noob but familiar with javascript issues in CGI
> programming, I infer that the jquery code for 'load' et al is not
> being sourced and that perhaps the correct module is not enabled?
>
> I have derived this from the example shown at
> http://drupal.org/node/305747
>
> NOTE : I have enabled the drupal ajax examples. None can illuminate
> this problem for me.
>
> Any help would be appreciate:
> thanks
More information about the support
mailing list