I'd like to use pure Javascript httprequest to post a message to a controller/action in Zend and get back a response that I can process back in the page with a callback function, classically.
Two questions:
- how can I format the POST string taking into account the baseurl imposed by Zend (in the classical case I point to a php file).
- what should I do - the simplest possible (I understand there are several possible implementations) - in the action method so that to return a response.
Again, no jQuery, JSON, prototype or other library.
The use case is the following: I have a view with a form section. One of the inputs is a select drop down list, I click on an item of that list, I trigger an Ajax request to controller/action and get back instantly from the server a value that I update a text area with.