I want to be able to open a window from javascript, collect some information
in the opened
window and have the opener block until the secondary window is closed. This
would behave
like the 'confirm'. Something like:
function getSubjectName( )
{
var selectNameWindo w = window.open(
"/webAppRoot/GetSubjectName. jsp", .... );
// Block until 'selectNameWind ow' closes
var subjectName = selectNameWindo w.document.form .subjectName.va lue;
return subjectName;
}
where GetSubjectName. jsp would present a list of name from which a selection
is made and a return button that would close the window.
Can it be done? Does 'selectNameWind ow' persist after it is closed?
Can you point me to an example or other information on how to accomplish
this.
Thanks in advance,
jim cant
in the opened
window and have the opener block until the secondary window is closed. This
would behave
like the 'confirm'. Something like:
function getSubjectName( )
{
var selectNameWindo w = window.open(
"/webAppRoot/GetSubjectName. jsp", .... );
// Block until 'selectNameWind ow' closes
var subjectName = selectNameWindo w.document.form .subjectName.va lue;
return subjectName;
}
where GetSubjectName. jsp would present a list of name from which a selection
is made and a return button that would close the window.
Can it be done? Does 'selectNameWind ow' persist after it is closed?
Can you point me to an example or other information on how to accomplish
this.
Thanks in advance,
jim cant
Comment