So after “googling” my dumb js problem and returning with little help, I have decided to post this question here, in hopes some of our wonderful readers can help me out. I am hoping my problem is a blatent obvious “well duh!” sort of one:
I am loading a JSP page, on the load of the page (it is a pop up), I call the following:
try {
window.print();
} catch (e) {
// don’t do anything. This can happen if the user closes the window before the print dialog appears
}
problem is, if I close the window before the print dialog appears, I get a dumb js error, something like:
dialogArguments.__IE_PrintType
Any thoughts on how to stop this error if the unlucky user decides to close the popup before the print dialog appears???






April 14th, 2004 at 4:14 pm
Pop-ups are evil, and you should consider quitting any job that makes you implement them.
April 15th, 2004 at 7:26 pm
how refreshing that your friends can help you with this problem. I had to build several for my last job (you know the one) but like most things that went with it, I have blocked from my mind how to do anything with pop-ups.