Now it works... now it doesn't... a FrontPage ActiveX issue?

R

redemption2

The main web page I use has an ActiveX animation of two graphics flying in
from the left and right upon entry to the site. Until today, it has worked
fine on FrontPage, but now it gives me a coding error when I attempt to
preview it. Here's the error:

Line: 2
Char: 1
Error: Invalid character
Code: 0
URL: file:///C:/Documents and Settings/student/Local Settings/Temporary
Internet Files/FrontPageTempDir/pvw4D.htm

Do you want to continue running scripts on this page?

As usuall I click yes, to that choice, but the animation doesn't run, and I
don't know why. As I said, this worked fine every time until today, and I
never touched the code for the animation. Here's the code for the header:

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>AMS Home</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="file:///C:/Program%20Files/Microsoft%20Office/OFFICE11/fpclass/animate.js">
</script>
<script language="JavaScript"
src="file:///G:/AMSIntranet/share/scripts.js"></script>
<script language="JavaScript"><!--
var help_root = './';
//
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;
}

function FP_swapImgRestore() {//v1.0
var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
var elm=doc.$imgSwaps; if(elm) { elm.src=elm.$src; elm.$src=null; } }
doc.$imgSwaps=null; }
}
--></script>

<TITLE>News Bulletin</TITLE>
</HEAD>

Most of those Functions are for preloading button images, there's no need to
worry about those. And finally, here's the code of the animation itself:

<td width="64%" height="1" valign="top" style="line-height: 100%;
text-indent: 0">
<p align="center" style="line-height: 100%; position: relative
!important; visibility: hidden" dynamicanimation="fpAnimflyLeftFP1"
id="fpAnimflyLeftFP1" language="Javascript1.2"><b><font color="#0073CE"
size="2"> <br>
<i>PHILADELPHIA DEPARTMENT OF PUBLIC HEALTH</i></font></b></p>
<p align="center" style="line-height: 100%; position: relative;
visibility: hidden" dynamicanimation="fpAnimelasticRightFP1"
id="fpAnimelasticRightFP1" language="Javascript1.2">
<img border="0" src="hometitle.gif" width="647" height="59"><br>
</p>
</td>

I've never seen anything like this before. Could it be a FrontPage
initialization error? Oh, I forgot to mention that it still works properly
on the new Internet Explorer 7.0, just... not FrontPage.
 
D

David Berry

The file:/// means that the script is pointing to files on your hard drive
and not on the web site. Which means no one else will see it. Import all
files into your web first and then change the code to point to the folder
the file is in. ex:

Change:

<script language="JavaScript1.2" fptype="dynamicanimation"
src="file:///C:/Program%20Files/Microsoft%20Office/OFFICE11/fpclass/animate.js">
</script>
<script language="JavaScript"
src="file:///G:/AMSIntranet/share/scripts.js"></script>
<script language="JavaScript">

to

<script language="JavaScript1.2" fptype="dynamicanimation"
src="fpclass/animate.js">
</script>
<script language="JavaScript"
src="share/scripts.js"></script>
<script language="JavaScript">



redemption2 said:
The main web page I use has an ActiveX animation of two graphics flying in
from the left and right upon entry to the site. Until today, it has
worked
fine on FrontPage, but now it gives me a coding error when I attempt to
preview it. Here's the error:

Line: 2
Char: 1
Error: Invalid character
Code: 0
URL: file:///C:/Documents and Settings/student/Local Settings/Temporary
Internet Files/FrontPageTempDir/pvw4D.htm

Do you want to continue running scripts on this page?

As usuall I click yes, to that choice, but the animation doesn't run, and
I
don't know why. As I said, this worked fine every time until today, and I
never touched the code for the animation. Here's the code for the header:

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>AMS Home</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="file:///C:/Program%20Files/Microsoft%20Office/OFFICE11/fpclass/animate.js">
</script>
<script language="JavaScript"
src="file:///G:/AMSIntranet/share/scripts.js"></script>
<script language="JavaScript"><!--
var help_root = './';
//
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;
}

function FP_swapImgRestore() {//v1.0
var doc=document,i; if(doc.$imgSwaps) {
for(i=0;i<doc.$imgSwaps.length;i++) {
var elm=doc.$imgSwaps; if(elm) { elm.src=elm.$src; elm.$src=null; } }
doc.$imgSwaps=null; }
}
--></script>

<TITLE>News Bulletin</TITLE>
</HEAD>

Most of those Functions are for preloading button images, there's no need
to
worry about those. And finally, here's the code of the animation itself:

<td width="64%" height="1" valign="top" style="line-height: 100%;
text-indent: 0">
<p align="center" style="line-height: 100%; position: relative
!important; visibility: hidden" dynamicanimation="fpAnimflyLeftFP1"
id="fpAnimflyLeftFP1" language="Javascript1.2"><b><font color="#0073CE"
size="2"> <br>
<i>PHILADELPHIA DEPARTMENT OF PUBLIC HEALTH</i></font></b></p>
<p align="center" style="line-height: 100%; position: relative;
visibility: hidden" dynamicanimation="fpAnimelasticRightFP1"
id="fpAnimelasticRightFP1" language="Javascript1.2">
<img border="0" src="hometitle.gif" width="647" height="59"><br>
</p>
</td>

I've never seen anything like this before. Could it be a FrontPage
initialization error? Oh, I forgot to mention that it still works
properly
on the new Internet Explorer 7.0, just... not FrontPage.
 

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