|
|
|
|
|
|
Submit a form with Ajax
|
01/18/2006 By Cake Baker
|
I think this code is self-explanatory (if not, please write a comment). What’s cool about this code is the fact that it will also work when you disable JavaScript. The form will submit the form data in both cases to /controller/action. That means you have to distinguish in your action whether it is called via Ajax or not, and then you have at least to select the appropriate layout. You can do it in the following way (thanks to nate for this hint):
Read more...
|
Rate this Ajax Tutorials
Rating: 4.5 out of 4 votes cast
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|  |
 |
|
© 2008 ajaximpact.com. All rights reserved. |
|
|
|
|