Please Help Fix This Error Message

This is a discussion on "Please Help Fix This Error Message" within the JavaScript Forum section. This forum, and the thread "Please Help Fix This Error Message are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 26th, 2006, 14:05
Junior Member
Join Date: Jun 2006
Location: London
Age: 30
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Please Help Fix This Error Message

Good Afternoon,

When the page below is loaded an error message appears, reading

'Java Script error

Description: Unterminated string constant
Source:http://www.harmonixconstruction.com/contact1.html
Line 12'

http://www.harmonixconstruction.com/contact1.html

Can anybody tell me what to do to fix this?

Many Thanks
Reply With Quote

  #2 (permalink)  
Old Sep 26th, 2006, 15:40
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Please Help Fix This Error Message

You need to look through your JavaScript for areas where strings are declared, assigned or whatever for situation like: "mystr1 or 'mystr2 with no corisponding closing quote.

The code in /scroller/scroll.js looks a little suspect in the way the mix of double and single quotes have been used.

I can also tell you that validating your page with the W3C validation tool results in 22 errors on this page. You shoul fix these. Other pages have similar problems.

You are also using propriatory styling attributes. You should get rid of these and use standards compliant css.

I should add that Firefox does not throw a JavaScript error so the error may being caused by something that only IE executes.

Last edited by ukgeoff; Sep 26th, 2006 at 16:58. Reason: Added more info
Reply With Quote
  #3 (permalink)  
Old Sep 26th, 2006, 17:16
Junior Member
Join Date: Jun 2006
Location: London
Age: 30
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please Help Fix This Error Message

Many Thanks Geoff,

I did test in Firefox and realised that the error was not happening, I will go and check the quotes as you suggest.

I am not sure how I go about fixing the 22 errors that are identified by the W3C validation tool. Sorry to be a pain but could you offer any tips?

Kind Regards

Dan
Reply With Quote
  #4 (permalink)  
Old Sep 26th, 2006, 22:04
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Please Help Fix This Error Message

You just have to work through them fixing what it tells you is wrong.

HINT: Always fix in order as problems can be caused by a cascade effect.
Reply With Quote
Reply

Tags
help, fix, error, message

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error message of webmail begeiste PHP Forum 2 May 27th, 2008 19:39
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
CDO.Message.1 error '80040220' djanim8 Classic ASP 2 Jan 12th, 2007 18:33
Why error message in status bar? Sofie PHP Forum 11 May 13th, 2006 18:23
error message cant get straight monkboy12345 PHP Forum 1 Apr 15th, 2005 21:34


All times are GMT. The time now is 04:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43