Unterminated String Constant

  • Thread starter Trevor Lawrence
  • Start date
T

Trevor Lawrence

I am tyring to debug a problem for a poster on the newsgroup

I have created a file which works perfectly on my local disk. I then
uploaded it to http://tandcl.homemail.com.au/rinotan/index3.html

But when loaded it gives the error Unterminated String Constant at line 398,
char 56

Of course, the file does not have this line number - it is referring to some
JavaScript

The purpose of the file is that when an image is clicked, JavaScript is
invoked from js/dv.js which displays a larger image. While this works
perfectly on local disk, when on the web it gives the error message 'dv' is
undefined.

'dv' is a function on js/dv.js

What is happening ?
 
R

Ronx

I see no errors in IE7 on Windows XP, but FireFox shows a lot of CSS and
Javascript warnings - but no errors.
The JavaScript warnings relate to undefined properties, such as height,
before any images are clicked, and warnings that some functions do not
always return values.
 
T

Trevor Lawrence

Steve Easton said:
Works fine in IE 7, works in FF also, but there's no X to close the div in
FF.

Thanks. Ron and Steve

I have hestitated to install lIE7 because of all lthe bad reports, but I did
today, and sure enough the page works fine

<rhetorical>
WTH could have been wrong in IE6?
</rhetorical>

Of course, I still have to figure out the other problems, but I am a lot
further down the track now
 
R

Ronx

I get the same errors in IE6 as you. Commenting out the offending line
produces a new error - "[" expected in line 400, char 188 (There are
less than 80 characters in line 400.)

Commenting out all lines between
DVObject.prototype.decodeHtml = function(encodedString) {

and

return encodedString;
};

clears all the errors.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
T

Trevor Lawrence

Ronx said:
I get the same errors in IE6 as you. Commenting out the offending line
produces a new error - "[" expected in line 400, char 188 (There are less
than 80 characters in line 400.)

Commenting out all lines between
DVObject.prototype.decodeHtml = function(encodedString) {

and

return encodedString;
};

clears all the errors.

Thanks, Ron

1. I assume the line numbers are in dv.js
2. Does this also still work as before?
I would have thought that all the functions were needed, but it is a complex
piece of JS that I don't really want to debug
 
R

Ronx

The line numbers are in dv.js

I cannot see any difference in the gallery operation. The function
appears to replace common character references with ASCII equivalents -
unless you are writing in German, East European or Scandinavian
languages, I cannot see any problems.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




Ronx said:
I get the same errors in IE6 as you. Commenting out the offending line
produces a new error - "[" expected in line 400, char 188 (There are less
than 80 characters in line 400.)

Commenting out all lines between
DVObject.prototype.decodeHtml = function(encodedString) {

and

return encodedString;
};

clears all the errors.

Thanks, Ron

1. I assume the line numbers are in dv.js
2. Does this also still work as before?
I would have thought that all the functions were needed, but it is a complex
piece of JS that I don't really want to debug
--
Trevor Lawrence
Canberra
Microsoft MVP - FrontPage
MVP Web Site http://trevorl.mvps.org
 
Top