Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stoopid Gold Bar message 3

Status
Not open for further replies.

JPJeffery

Technical User
May 26, 2006
600
GB
Hi

I have a VB script which tests some IP settings and connectivity then produces an html report which opens up in Internet Explorer.

All well and good but in order to reduce fretting and confusion for our end users I'd like to suppress the 'gold bar' that appears under the title bar stating, well, have a look at the 'attached' image.

I've tried suppressing this by adding the '[tt]<!-- saved from url=(0014)about:internet -->[/tt]' Mark Of The Web as follows:
Code:
<HTML>
<HEAD>
<STYLE TYPE="text/css">
<!--
TD{font-family: Verdana; font-size: 10pt;}
--->
</STYLE>
<!-- saved from url=(0014)about:internet -->
<TITLE>Remote PC Connectivity Diagnostics</TITLE>
</HEAD>
...
but it's made no difference. Is there a way of scriptomatically suppressing this message in the HTML code?

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]
 
Do you run any javascript on the resulting html page? This is a warning that appears when running local files through IE and can only be suppressed on each individual machine. Try it without javascript in the file (if you have any) or even without CSS (the style tags) and see if it is still there. I forgot what exactly IE regards as ActiveX script in local files.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
There is that wee bit of css, yes. I'll try it right now...hold on...OK, I took out the lines specifying the css style in the above code snippet leaving it like this:
Code:
<HTML>
<HEAD>
<!-- saved from url=(0014)about:internet -->
<TITLE>Remote PC Connectivity Diagnostics</TITLE>
</HEAD>...
but that warning bar still appears.

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]
 
I have a local page that uses css and the MOTW works. Mine uses an actual "web" address though:
Code:
<html>
<head>
<title>Page title</title>
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href="textstyles.css" rel="stylesheet" type="text/css" />
<!-- saved from url=(0025)[URL unfurl="true"]http://www.microsoft.com/[/URL] -->
</head>

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
When IE saves a page it puts the MOTW just after the DOCTYPE. Does your page have a DOCTYPE?

Here's my page again:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Page title</title>
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href="textstyles.css" rel="stylesheet" type="text/css" />
<!-- saved from url=(0025)[URL unfurl="true"]http://www.microsoft.com/[/URL] -->
</head>
<body>

Heres full info on the MOTW:

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
Ooh, so many questions! :)

(Of course last Friday I would have written "Arr! Ye be asking many a question, ye lubbers!")

Er, anyway, my web page doesn't open from a web site as the page is created in the user's %temp% folder and opens from there.

My code doesn't have a DOCTYPE declaration. Not much idea what that is, so I'll look it up and/or give it a go.

Is the MotW a Red herring? I reckon not, since up until this morning I'd not considered using it but then remember using it in a previous script in my previous job to get rid of a similar symptom so gave it a go to today. No luck (obviously).

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]
 
Daft as it may sound, do you get a problem with a page that contains only the HTML:
Code:
<html>
</html>

I do (under Vista)!!!
 
I do believe Microsoft has decided to rely solely on obfuscation to protect your computer instead of real security. Therefore instead of analyzing the code you give it, it automatically displays a warning, since there is a potential that the code might have nasty scripts and it is not normal to use a browser to open local addresses. If you can put the file on a server and have it read from there, you won't see any warning. Alternatively, if you play around in the IE options, you should be able to turn this warning off, saying that you do trust local files. It's really sad that such a big corporation is protecting you in such a primitive way, but it looks like that's exactly what they've done here.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
I think you might be right, Vragabond.

Unfortunately, getting the file on to a server is not an option (the idea of the script is to help remote users when they have connectivity issues, such as when the ring us in the middle of the night - OUR night - when they're trying to check their email from a hotel in Beijing!)

I'll look at finding the 'trust local files' option.

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]
 
As per my other thread referenced above - not sure if this will help:

Under Vista I ticked the IE setting:

"Allow active content to run in files on My Computer"

and it did the trick. This is not ticked on the XP box but it behaves perfectly anyway. Ours is not to reason why.
 
Yes, I found that too. Now to work out how to scriptomatically change it...

Cheers!

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, and so on)[/small]
 
JJ - interesting that the MOTW is not working for you. I'm running XP-SP3 and IE7 with all the latest updates.

I have a portable favorites page I run from a flash key or my HDD. I initially got the warning, added the MOTW and no longer got the warning. I changed nothing in my browser settings.

I wonder what else is getting involved.

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
I found that MOM worked ( I used '<!-- saved from url=(0014)about:internet -->' ), but ONLY if it's in the HTML, and on a line by itself. Being on a separate line sounds absurd, but I tested it several times and it only worked when on its own line.
 
johngoebel,
That is specified in the MS doc I linked (which I found after I had done the page I used as an example here).

From MS said:
To be valid, a MOTW comment must follow some simple rules.

* The comment must start with the following:
Copy Code

<!-- saved from url=

* The comment must end with the following:
Copy Code

-->

* The comment must contain a value to indicate the string length of the URL that follows, in the form (####). Note that the length in (####) can be less than the length of the URL; however, Internet Explorer uses only as many characters as are indicated to map the file to a security zone. At a minimum, the string length should indicate the number of characters in the complete URL up to the end of the top-level domain name (.com, .org, .net, and so on for Internet sites). If the length in (####) is greater than the URL's length, Internet Explorer ignores the comment and loads the Web page in the Local Machine zone.
* The comment must contain the Web page's URL immediately following the string length.
* The comment must appear in the first 2,048 bytes of the HTML document, within the HTML markup.

Alternatively, in situations where the domain is not yet known, Internet Explorer recognizes "about:internet" as a valid URL. The correct format for the MOTW in this case is as follows:
Copy Code

<!-- saved from url=(0014)about:internet -->

Note The HTML comment must be properly formatted for Internet Explorer to parse the information correctly. Proper format includes inserting a space immediately following the opening delimiter " <!-- " and just before the closing delimiter " --> ". The line must end in CR LF. Some HTML editors only insert a LF.

_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top