I am developing a web site which provides an online diary. In this, I want to allow users to edit their diary entries. The diary entries are shown in a DataTable and I have a Edit button.
I want to use a Modal Panel to show the Edit form. However, I have to change the content of the fields of the form whenever a user clicks Edit for a perticular record.
Then, I call the showModalPanel method.
However, when I executed this, all I get is a empty form without values. I can see that there's a Ajax request, but the fields are empty. I am wondering what went wrong.
Any help, suggestion is appreciated.
Thanks in advance.
1. model panel must have its own form
2. modal panel should have the form outside
Do you follow those two rules ?