Javascript and dialog boxes

I need to web enable a notes database and I’m a bit rusty with javascript. One of the things I need to do is figure out how to web enable a dialog box…

Currentl in the client, on a form, there is a button the uses the LS dialog box, which brings up a form for user input. when the user clicks ok on the dialog, it updates the fields on the underlining document.

I want to do this on the web. My thought is using javascript in the form button to bring up the dialog form in a new window so the user can enter values. How would I add the values entered in the dialog window onto the underlining form using javascript?

I’m sure there is a post on this, but I can’t seem to find it.

Xie Xie

Subject: javascript and dialog boxes

you have to use somthing like this on the button (but you have to change it)

<a href=’

http://server.com/test/test.nsf/dlgForm?OpenForm&p=Articles’>open dialog and one parameter for new window, u will find it. blank=new

it means that the form will open and p=Articles will be your parametres (it’s the way how u can transmit data from main window to you dialog)

but in any case you should to read a little about it

Subject: RE: javascript and dialog boxes

how would I pass any values entered in a dialog ,(a 2nd window created from a button on the original form), back to the original form?

Subject: RE: javascript and dialog boxes

You could use something like…opener.document.forms[0].fieldname.value = document.forms[0].fieldname.value

Subject: RE: javascript and dialog boxes

Thank you kind sir,

that seems to do the trick. Thanks!!

Subject: disregard…sorry for multiple post…

You could use something like…opener.document.forms[0].fieldname.value = document.forms[0].fieldname.value