Click to See Complete Forum and Search --> : Change form values with a popup window


voltaq
01-11-2005, 10:00 PM
Hello,
I want to know if it is possible to change form values with an popup window.

With other words:
I have a website with a form in it.
In that form I have a textfield(A).
Under textfield(A) there is an link that opens a popup(child)window when you click on it.
In that popup(child)window there is another form with a textfield(B).
And when you change the value of that textfield(B) and click on the save/update link, it closes the popup(child)window and the value of textfield(A) equals the value of textfield(B).

Is this possible with HTML? If not, wich scripting language do I have to use?
If it is possible I would like to know:
-how do I have to call/create this popup(child)window?
-what must the popup(child)window do to update textfield(A)?

Thanks in advance,

Renato

ray326
01-12-2005, 01:45 AM
This would be answered better in the DHTML forum but you have to use the DOM and Javascript to communicate between the parent and child windows. This means your visitors will be required to have Javascript enabled to use your forms but that usually is not be a problem.