Google Answers Logo
View Question
 
Q: "An error has occured in the script on this page." How to fix this problem. ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: "An error has occured in the script on this page." How to fix this problem.
Category: Computers
Asked by: jude1-ga
List Price: $10.00
Posted: 07 Mar 2004 20:06 PST
Expires: 06 Apr 2004 21:06 PDT
Question ID: 314431
I am working in FrontPage and my homepage and another page report this error:

"An error has occured in the script on this page.

Line:    4
Char:    1
Error:   Syntax error
Code:    0
URL:     file://C:\Documents and Settings\Jude\Local
Settings\Temporary Internet Files\Content.IE5\IWLUV94P\[1].htm

Do you want to continue running scripts on this page?"

And when the pages load, they say at the bottom in the status bar:

"Done, but with errors."


The pages are:
www.mammasmilk.com
www.mammasmilk.com/double_layer.htm

How do I fix this?

Request for Question Clarification by joseleon-ga on 08 Mar 2004 04:06 PST
Hello, jude1:
  The comment of cartack solves your problem, if you need help fixing
it, just tell me and I will post a full answer with a detailed
step-by-step procedure of what you need to do.

Regards.

Clarification of Question by jude1-ga on 08 Mar 2004 06:57 PST
I clicked on the vtrax link and it does appear to be inactive, but my
account with them is still active & I can still see up-to-date stats.
Also, I don't have this error on every page and I have the vtrax code
on every page. I also tried re-doing the frontpage image swaps and
that didn't solve it either. ??
Answer  
Subject: Re: "An error has occured in the script on this page." How to fix this problem.
Answered By: joseleon-ga on 08 Mar 2004 08:48 PST
Rated:5 out of 5 stars
 
Hello, jude1:
  On the pages you get the error, you have this code for the tracker:
  
<script type="text/javascript" language="javascript"
src="http://www.vtrax.net/trak.js?1064245169"></script>

While on the pages that work, that is, you don't see any error, this
is the code you have for the tracker:

<script type="text/javascript" language="javascript"
src="http://www.vtracker.net/trak.js?1064245169"></script>

Pay attention to the domain name, vtracker.net instead vtrax.net, if
you make this little change on the index and double_layer.htm page,
that error will be removed.

In any case, please, don't hesitate to request for any clarification.

Regards.
jude1-ga rated this answer:5 out of 5 stars and gave an additional tip of: $5.00
Awesome! It totally fixed it and I never would have caught that. Thank you!

Comments  
Subject: Re: "An error has occured in the script on this page." How to fix this problem.
From: jakkwylde-ga on 07 Mar 2004 20:22 PST
 
The error in question is a JavaScript error.  By looking at the source
code, it appears as though you are using built in FrontPage components
for image swaps, and possibly their shared borders (for the nav).  The
image swap usings the scripting language of javascript on the client
side (your browser), to perform the dynamic actions.

I would start by removing the image swap actions in FrontPage, and
recreating them.  Possibly the source got corrupted somewhere in your
development process(which is not uncommon when you are using built in
components like this).

If this does not work, try removing and recreating the "shared border"
(or whatever they may call it now in frontpage), that you used to
create the navigation structure.

More than likely, one of these will take care of this issue.

**NOTES**- more often than not, the "error on line number X at char
position Y" message is useless, so ignore it.  Also, be careful using
the built in FrontPage components - often times these actions only
work in Internet Explorer.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy