Hoy,
For a new module development (soon available to download) for Drupal 6, I would like to add an ajax feature.
For this, I'm based on an example from the book "Pro Drupal Development" : the voting module "plus1", on page 267.
But I'm in front of an issue, that's I suppose come from the jQuery code.
So, I tried to upgrade the plus1 module for Drupal6 but still not working.
For those who know this module, after clicking on the "Vote button", I have a blank page with the json
content !
I have see that in Drupal 6 we don't need to user anymore the parseJson()
function:
http://drupal.org/node/114774#removed_several_functions_from_drupaljs
I tested different possibilities, but don't have enough knowledge on this
point to understand the problem.
I have understand that I need to define dataType: 'json' but not where and
how.
Could someone point me on the correct syntax to use in Drupal 6 instead of :"var result =
Drupal.parseJson(data);" ?
Thanks a lot,
Damien
----------------
Keep Open Spirit