Rank: Newbie Groups: Member
Joined: 6/19/2007 Posts: 4
|
I have a dialog from which I want to be able to run server side code to execute some database changes, then close the dialog. Can this be done with a single button click? I've been through the forum and the samples -- but can't find something similar.
Thanks,
Brad Smith
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Brad,
For that you will need to use a CallbackPanel control. It really has nothing to do with the dialog. So the questions are really two questions:
1. How to run server side code from client side; 2. How to close the dialog;
For the first question you can go over the CallbackPanel and you will see that's exactly what is for. For the second one you can do eo_GetObject("your_dialog_id").close();
Thanks
|