CiviCRM Community > APIs and Hooks

API Newbie - help

<< < (2/3) > >>

xavier:
Use firebug, likely it displays an error msg

X+

dowd:
In Chrome's console (never have got on with firebug) without deleting the second quote mark I get an error of "Uncaught SyntaxError:Unexpected token <"
Without the second quote mark I don't seem to get any errors from it at all.

dowd:
Just seen that I do get an error message when the button is actually clicked of

Uncaught TypeError: Object #<Object> has no method 'crmAPI'

Does this give any clues?
Thanks!

xavier:
Hi,

Might be some conflict between the site jquery & civicrrm one.

Try replacing

jQuery(document).ready(function($){

by

cj (function ($) {

geekdenz:
http://issues.civicrm.org/jira/browse/CRM-10670 might fix this. Hope this helps.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version