R
rf
Arash Dejkam said:I didn't mean that I managed to bring up the pop-up, what I did is that
the page can now detect that the pop-up is terminated and submits the form
in normal way. that is what I meant by "work around" I don't persist on
having a pop-up, I just want the page to be usable for everybody.
didn't your entry submited in normal way ?
When I allow your popup to occur the form is submitted, and even sends back
a response about required fields missed.
When I disallow popups your page does *not* submit the form. I get a
javascript error reported but *nothing* is sent up the wire.
Debugging reveals that the open call in your function send did not execute.
We don't even get to test wheather w is null or closed, the script
terminates.
The script terminates because the open function does many things. It
launches an instance of the browser, sets up a blank page on that browser
and then does a few more things.
The "launch an instance" bit fails. When the open function tries to do its
remaining bits it finds that the browser instance has disappeared, so it has
no option but to break; The full text of the error message is:
<q>
The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call did not execute.
</q>
Perhaps you should acquire yourself a copy of popup-stopper (it's free) and
do some testing Make sure you run it in its aggressive mode.
BTW am I corrrect in assuming that the reason for all of this skulduggery is
so your viewer stays on the same page after the form submission? If this is
so then AFAIK you could simply send the from as normal and set the
appropriate return code in your server side process.