dialog box

dialog box

Hello,

Is there a way to call the dialog box not on document.ready but when a button is clicked?

I need to open a form dialog from a form page.

When the dialog form is submitted, I need to go back to the previous form and keep all the values that were captured there.

My problem is that I've tried to use: document.getElementById but those are all empty when the document.ready is being called.

Thanks,

Sigal