Widget, Dialog And Ajax

I wrote a little widget that renders a view which contains text and a button.

The text content depends on Database values.

The button fires a dialog box.

That dialog contains a form which updates Database.

After submitting, the dialog closes well but I want to refresh the widget view without reloading the entire page.

My work is based on the Quickdlgs widget.

Many thanks for your help

I think the solution should be to change the elements one by one through javascript and not reloading the entire widget view.

Am I right or there is another solution ?

Thanks