Can I allow MS ActiveX on my site?

S

Stephen

Hi

On my site (which is not live) I have a mix of

JavaScript
VBscript

It is an '.asp page' because I use this date function;
<%=weekdayname(weekday(date()))& " " & FormatDateTime(Date,vbLongDate)%>

When I change the extension back to .htm and run it through Preview in
Browser
I get this message at the top of the browser;

To help protect your security Internet Explorer has restricted this file
from showing.

The reason for this message is ACTIVEX content.

Of course I can turn my IE popup blocker off - but this will be very
annoying to users.

My questions;

1) What causes this message on my page - is it JavaScript ?
2) Is there anything I can do to override this problem?


Many thanks in advance - Stephen
 
T

Tom Pepper Willett

It's the active x content in your browser set up. Check your settings in
IE.
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/understanding/frontpage/
FrontPage 2002 Server Extensions Support Center:
http://support.microsoft.com/default.aspx?scid=fh;en-us;fp10se
===
| Hi
|
| On my site (which is not live) I have a mix of
|
| JavaScript
| VBscript
|
| It is an '.asp page' because I use this date function;
| <%=weekdayname(weekday(date()))& " " & FormatDateTime(Date,vbLongDate)%>
|
| When I change the extension back to .htm and run it through Preview in
| Browser
| I get this message at the top of the browser;
|
| To help protect your security Internet Explorer has restricted this file
| from showing.
|
| The reason for this message is ACTIVEX content.
|
| Of course I can turn my IE popup blocker off - but this will be very
| annoying to users.
|
| My questions;
|
| 1) What causes this message on my page - is it JavaScript ?
| 2) Is there anything I can do to override this problem?
|
|
| Many thanks in advance - Stephen
|
| --
| Outgoing emails automatically scanned by Norton Antivirus.
|
 
K

Kevin Spencer

In the context of an ASP page, the ASP scripting tags are interpreted
correctly, and don't appear in the browser. When you rename it with a .htm
extension, it is not handled by the ASP ISAPI, and the server-side scripting
DOES appear in the HTML of the document that is sent to the client. Hence,
the erroneous error message.

How do you stop it? Well, either don't use ASP scripting in HTML pages, or
give ASP pages a .asp extension.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top