This is skeleton code example on posting form data in JSON format processing by Yii’s controller action. Although this example uses Yii, the code can be easily adaped to pure PHP code.
This code has been tested with xajax V0.6 beta 1. Before sending header:
A case that works in IE but not Firefox (for a change). Supposed there’s form with a few fields. A button to manually adding more fields to the form. These fields are grouped under the same <div> tag. When the fields are added to the form, the original field values are reset.
Append a table row should sound straight forward when using with a xajax function. The HTML code for table and a button within a form: