Does anyone show me how can I use ajax forms


I want show a dialog modal in order to update invoice number of an order. I have used ceDialog for that and succeeded to show a form in that modal window. But I don't know how can I save the form and update invoice area which placed into the related row of order list.

Does anyone send me a simple example about that flow?