I would like to use AJAX (to submit form data and get response) for a simple module I am developing. From the disscussion that has been going on in the forums I have learnt about the functions (HTTPPost, HTTPGet etc) available in misc/drupal.js. But I have no idea as how to implement these functions. Can anybody point me to a 'HOW TO' or else provide me some examples on how to use this functions.
Perhaps a handbook page in the module developers guide could be dedicated for this purpose as I believe many are eager to try AJAX with Drupal.
I am using Alex Reisner's excellent formproc module, but cannot get the "formproc_charcount" feature to work. A working example of it can be found at his page at: http://www.alexreisner.com/drupal/modules/formproc
What is the accepted method of collecting a list of values from a textarea in hook_settings and recording the list of values as a serialised array in the variables table? Or is it better to just save them as an unserialised string, as block.module does, for example?