IE7 javascript bug in FP2003 ?

R

redemption2

Maybe it would be faster if I just showed you the code in question:

<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="animate.js">
</script>
<script language="JavaScript"
src="file:///G:/AMSIntranet/share/scripts.js"></script>

That is before entering Preview mode. Then I enter Preview mode, and get
the same error with the javascript. Then I wind up with this code on the
screen:

<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>

Notice how the pathway for the animate.js has changed for no apparent reason?
 
S

Steve Easton

Either one of these:
file:///G:/AMSIntranet/share/scripts.js"></script>
or
src="file:///C:/Program%20Files/Microsoft%20Office/OFFICE11/fpclass/animate.js">

tells me that you might have been editing a page "outside" of your web, or editing a page without having a web open.

Go here: http://www.95isalive.com/fixes/fpclean.htm and download FP Cleaner ( with Expression Web Designer and
SharePoint Designer support )
Download links are at the bottom of the page.
Run the functions that clear:
The Hidden Temporary files.
The Hidden Cache (*.web) files.


then open FrontPage.
open your "Web"
open the page and reinsert the aniamtion.


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
R

redemption2

what do you mean "editing a page 'outside' of your web"? As an FYI, this is
an Intranet page, no external link to show you. I'm not quite sure on what
you're asking me to do about it either. Sorry, my comprehension today is a
bit low due to a bout of insomnia.
 
S

Steve Easton

It tells me your editing the page as an individual file without opening a web first.
"Or" you are browsing outside of the "web root" when selecting the file path.

That is why FrontPage is creating file based links to your files:
src="file:///G:/AMSIntranet/share/scripts.js"></script>

It should be <script language="JavaScript" src="animate.js"></script>
for the one in the same folder as the page
or <script language="JavaScript" src="foldername/animate.js"></script>
for one in a different folder

--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 

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