unemployment — 2011-04-20T11:48:02-04:00 — #1
Any idea how to accomplish this?
requestform.onsubmit = function ()
/* So what to do here, thats the question
- I want to get the data / NAME of a button that has been pressed, if such function exists.
- Then I need to use AJAX to send the form data to some file that probably doesnt exist yet.
- Give the PHP a response, and echo the response to replace the buttons
paul_wilkins — 2011-04-20T21:06:58-04:00 — #2
The best resource for what you're dealing with is a book called [Bulletproof Ajax which also provides all of the [url="http://bulletproofajax.com/code/"]code and examples](http://bulletproofajax.com/) from the book.
If you don't want to learn such details of how to do it, code libraries such as jQuery help to dramatically simplify the code you need to write.