I have a script (and button) to print a label on my label printer. The script switches to the appropriate layout, does a Print Setup, prints to my label printer, then switches back to the original layout. Works flawlessly.
But I then want to switch my chosen printer back to my letter-size...
This has been running fine in IE, FF, and Safari for years. Now it errors out in IE8. I have no idea why. The page validates fine.
function _windowNew(url,name,horSize,vertSize,statusBar,menuBar,toolBar,reSize,scrollBars) {
if (!statusBar) {statusBar="no";}
if (!menuBar) {menuBar="no";}
if...
> Where did you read that the onload event does not fire until after all embedded scripts have been performed? I've never heard that one before, and AFAIK, it is very much incorrect.
O'Reilly - Javascript, the Definitive Guide - 4th Edition, page 669.
"When the onload event handler is invoked...
So now I tried the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src='../cshtmlib/js/formHandler.js'></script>
</head>
<body onload =...
Thank you, Dan. I do use cookies, and you're right, they expire either after a certain amount of time or with the end of the session. But they don't expire with the closure of the window, leaving me at least somewhat exposed.
Paul
When a user closes a window, or even the browser, I want to log him off. All I can find as hints say to pop a new window using the "onUnload" event, then fire the call to cgi, and close the "popped" window. I can make most, but not all, of that work.
In the popped window, I define a form that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.