CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Civicrm api error
Pages: 1 [2]

Author Topic: Civicrm api error  (Read 3048 times)

harshal

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7.24
  • MySQL version: Mysql 5.1.32
  • PHP version: 5.2
Re: Civicrm api error
March 21, 2013, 07:12:05 am
Please check the link below and see line no 9 where the code is as follows

      
Code: [Select]
  $().crmAPI('Contact','get', {'callBack': function(data){ alert(data.count);}  });

https://github.com/harshal6/civicrm-api/blob/master/branch.js


I am not able to use crmAPI function. It will be great if i will be able to use that..

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civicrm api error
March 21, 2013, 07:26:35 am
My point is that I don't know how to display the page that contains that (trying to install locally). Or do you have a public site or can you write a minimal module to illustrate?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

harshal

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7.24
  • MySQL version: Mysql 5.1.32
  • PHP version: 5.2
Re: Civicrm api error
March 22, 2013, 12:09:23 am
Sorry ,
but I dont have any public site.
I can help you by writing a minimal module .But I would like to know what things do you want to be illustrated?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civicrm api error
March 22, 2013, 01:28:14 am
What doesn't work: inject the rest.js on a non civicm page and have a crmAPI("mushroom","grow") so I can reproduce your pb

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Civicrm api error

This forum was archived on 2017-11-26.