Hi, I would like to add some javascript events to some elements on my web. After user click on my custom text, onclick event handler calls ajax request to the server.
What is the best practise to set ajax in Drupal 7? I just want to set ajax on one link, I dno't want to use Form API for this puprose. I don't think it is suitable for creating just one ajax link.
I usually do it as follows.
I'm working on a module that implements a file virus scanning framework. As part of that framework, an administrator or sysadmin needs the ability to designate a "quarantine" area for files to live as they are being scanned.
I thought that by defining the temporary directory in the File System Settings, the file field api would upload files to this location while they were being validated, then move them to the appropriate public:// or private:// directory if they passed.