Please don't send any attachments to the list...it makes a
lot of spam/spyware/viruscheckers go crazy and it fills up my mailbox with all
the "refused" mails.
Dirk.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Deadman, Phil
Sent: Tuesday, August 17, 2004 4:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 17 August 2004 15:22
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
That page isn't doing anything Phil. What are the "Defanghtml" bits? That isn't some wacky scripting language that needs an addon is it?
Ian
Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854
| "Deadman, Phil"
<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 17/08/2004 14:42
|
|
You're right - in SOME browsers (and it IE is definitely one of them) it can
be fooled into thinking it has been opened by _javascript_...
Remove the blurMe() _javascript_ function in the page I uploaded, and add
this:
function closeMe() {
self.opener="AnyValueToFoolBrowser";
self.close();
}
Then change the BODY tag's onLoad event to call closeMe() rather than
blurMe().
Cheers,
Phil.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Michael D. Shook
Sent: 17 August 2004 13:26
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
Self closing HTML windows ARE possible, as is calling an alert window /
popup.
Due to hurricane issues, I'll try to post those solutions ASAP, but no
guarantees.
Michael D. Shook
Technical Analyst
Saddle Creek Corporation
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Deadman, Phil
Sent: Tuesday, August 17, 2004 7:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
Deliberate mistake #1: example value for heading parameter should be
%p+is+%s
Cheers,
Phil.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Deadman, Phil
Sent: 17 August 2004 11:44
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Message Popup
I don't know if this is of any use, but is offered for consideration!
I guess this only really works on Windows systems...? I've used IE as the
browser, but I guess you could use any browser.
Attached is an HTML file which uses _javascript_ to take 2 parameters out of
the query string - "heading" and "message".
You can configure an alert to run a command like:
iexplore.exe file:///c:/displaySaAlert.htm?heading=%p+is+%e&message=%e
This will open the page in IE and display the alert details (assuming the
HTML file is at the root of the C drive). You can change the styles in the
HTML to make the text bigger or a different colour.
Now there are some drawbacks!
You can't easily script the window to close itself (you can only close
windows you have spawned yourself). I've put a "blur" in after 10 seconds,
which will send this window to the back of the stack. If there is nothing
else up on the display then you'll still see this window. You could move the
window beyond the boundaries of the screen, which would effectively make it
disappear from view. Perhaps having the SA GUI maximised might assist in
hiding these alerts.
However, this means that you can end up with several of these windows open.
The only ways I can think of to close them down without doing each one
individually are (1) restart the box once a day (not always practical) and
(2) schedule a task to kill all iexplore.exe processes at regular intervals
(hoping it doesn't coincide with a real alert, and assuming the box isn't
used for any web browsing - in which case install a different make of
browser ;-).
Does that help any?
Cheers,
Phil.
Oki is proud to sponsor the "Oki European Challenge - 2005", the first truly democratic European yacht race.
For more information visit www.okieuropeanchallenge.com
***********************************************************************************************
This E-mail and any files transmitted with it is intended for the use of the
addressee only and may contain confidential information. If you are not the
intended recipient you are hereby notified that any use or dissemination of
this communication is strictly prohibited. If you receive this transmission
in error, please notify us immediately and delete this e-mail.
The views and opinions expressed in this e-mail message are the author's own
and may not reflect the views and opinions of Signet Group plc
or any of its subsidiaries.
***********************************************************************************************
MSW
