I downloaded the module and adapted it to work with Comments forms. In the process, I was trying to come up with a way of making it work with any form, and make sure it was not dependant on any specific field.
As a result I ended up using 2 fields on the module, one which will hold the token returned by the ajax call, and a new one which will hold a random value, generated on the PHP side of things, which is what will be used for the ajax call.
Also, I changed the JS so that instead of IDs it ises the "name" of the field. this is so that we don't rely on field IDs that can change if formas are reloaded using ajax (on each ajax call the IDs get an "--#" appended to then) or if the same form is shown more than once on one page.
I'm attaching the module as I am using it right now.
Hope it helps.
|#3||badbot-Make it generic and configurable-1868146-3.patch||13.38 KB||jm.federico|