IE refuses to run active content created in FP

L

louise

Win XP Pro, SP2, IE 6 SP2 and Frontpage 2003

I created a website in FP 2003 and I used the interactive buttons.

When I run the index.htm in IE 6, it blocks "active content" and
what it seems to be blocking is the buttons turning color when
moused over and/or clicked.

I'm disturbed because I don't want to put a site on the web that
people will be afraid to open because they think they're getting
some kind of virus or spamware message. The people who will be
accessing this site will probably not be particularly sophisticated
in these areas.

Does FP provide buttons that its own browser then rejects? And if
so, what do I do next?

TIA
Louise

This is what I think is the relevant code

<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array();
for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps
[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs
.src=a; }
}

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el)
return el;
if(o.id==id || o.name==id) return o; if(o.childNodes)
c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el)
return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if
(el) return el; } }
return null;
}
// -->
</script>
</head>

<body background="graylines.gif" topmargin="0" leftmargin="0"
marginheight="0" onload="FP_preloadImgs(/*url*/'button18.jpg', /
*url*/'button19.jpg', /*url*/'button42.jpg', /*url*/'button45.jpg',
/*url*/'button46.jpg', /*url*/'button47.jpg', /
*url*/'button48.jpg', /*url*/'button49.jpg', /*url*/'button50.jpg',
/*url*/'button52.jpg', /*url*/'button56.jpg')">

<div align="center">

<table border="0" width="82%" bgcolor="#FFFFFF" cellspacing="0"
cellpadding="0" height="6">
<tr>
 
P

p c

In the security tab for IE, did you disable javascrpt (called active
scripting). On IE Properties, Tools, Security, Custom Level, look for
Active Scriptinhg and select Enable. You will need to do for each
secuirty zon you want to enable it for.

The same effect will occur when users (other people you eant oview tyour
site) do the same. And you can's stop them.

FP is an editor. Browsers is what people will use to view web pages.

...PC
 
L

louise

In the security tab for IE, did you disable javascrpt (called active
scripting). On IE Properties, Tools, Security, Custom Level, look for
Active Scriptinhg and select Enable. You will need to do for each
secuirty zon you want to enable it for.

The same effect will occur when users (other people you eant oview tyour
site) do the same. And you can's stop them.

FP is an editor. Browsers is what people will use to view web pages.

..PC
Thanks - I know how to lower the security levels in IE. In fact, I
usually use Firefox.

But, most people will either not know how, or more to the point,
will be frightened away from my site by the warning.

I can't use code that sets off "alarms" when your average user goes
to my site.

I'm wondering if there's any way to modify the code to avoid this
or is there another way to make link buttons?

Louise
 
R

Ronx

When you retrieve the page from a server using a URL like
http://example.com/page.htm
the error message will not appear - unless your security settings are
set to block JavaScript.
When you use WinXP SP2 to view a file from the hard disc (as preview
in browser or Preview in FrontPage), the JavaScript will be blocked.
When the page is published there will be no error message.
 
L

louise

ronx917 said:
When you retrieve the page from a server using a URL like
http://example.com/page.htm
the error message will not appear - unless your security settings are
set to block JavaScript.
When you use WinXP SP2 to view a file from the hard disc (as preview
in browser or Preview in FrontPage), the JavaScript will be blocked.
When the page is published there will be no error message.
THANK YOU!

I just tried it to be sure - and it's absolutely fine.

I feel so much better :)

On a more serious note, MS should add some warning to FP 2003 so
that someone who isn't very experienced would know this. I checked
in help for the interactive buttons and I didn't see anything
there.

Louise
 

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