window.opener & HTTP error 413

  • Thread starter Thread starter Lau Lei Cheong
  • Start date Start date
L

Lau Lei Cheong

Hello,

I have a web upload application consist of the upload window and a
progress window. When the upload size is too large, the upload window will
show "server is not responding or DNS not found" error page.

Basically, I want the progress window to detect the error. However, if I
add "window.opener.(anything except closed or properties that simply doesn't
exist)", the javascript engine will simply hang there. For
window.opener.closed, it'll return false so is of no use for the test. For
window.opener.(something doesn't exist), it'll return "undefined" as usual.
Is there anything I can do to use javascript to test the upload window's
status.

Thanks a lot.

Regards
Lau Lei Cheong
 
An errata to the problem.

I've hide the statusbar, so doesn't see the "access denied" error. Sure
that's because the page is now redirected to the error page located at the
client's machine. Is that anyway to get detect that?
 
Yet another piece of information.

The try-catch handler doesn't function in this case. Although this is an
exception shown on the statusbar, the javascript engine still cease to
function even if try-catch block is used to wrap the statement. :(
 
Back
Top