Getting result from a dialog window

Hello,

I would like to know how to implement more sophisticated ‘prompt’
window.
The prompt window only display a single text field, what I would like is
to open a prompt and propose a user a list of choice, say a list
composed of a check box and the value. The user will check all the items
he wants, close the window, and my application will be able to retrieve
all check box item.

Do you have any idea how to achieve this ? (with rails of course;-)

Thanks all.

Laurent Marzullo