Hello wrote:
Scenario: A page creates a pop up and that pop up submits a
form. Is there a way to detect whether the submitting was
successful or not, so true/false could be passed to the
parent window?
The normal process of submitting a form results in the server returning
a replacement HTML page to the browser that submitted the form.
Presumably the server knows whether the submission was successful so it
can include in that page a script that tells the pop-up window's opener
that the submission was successful. In the absence of a positive signal
from the returned page the opener would have not choice but assume the
submission to have been unsuccessful.
Of course it is not a good idea to be using pop-ups at all, using
pop-ups as vehicles for separate form submission, or designing in
javascript dependencies into a system that already significantly
unreliable following the attempted use of pop-ups, but that is another
story.
Richard.