This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: 09-Jun-2018 09:49 Last Post By: AndreWolff
AndreWolff

Posts: 1,841
Registered: 14-Dec-2007
Strange error report for the wrong line number
Posted: 09-Jun-2018 09:15
 
  Click to reply to this thread Reply
Attachment ErrorText.PNG (79.6 KB)
Attachment Error.txt (8.1 KB)
I have in my index.htt file this code:
	<ja:if test="<%= ExifButton || ExifAlways %>">
		<% 
		String ExifInfo= getExifInfo(); 
		slideCaption= slideCaption + '<div class="exifInfo">' + ExifInfo + '</div>';
		%>
    </ja:if> 
which gives this error report for line 443 (line 443 is the line which starts with "String"):

se.datadosen.util.ScriptException: Sourced file: inline evaluation of: ``
String ExifInfo= getExifInfo(); slideCaption= slideCaption + '<div clas . . . ''
Token Parsing Error: Lexical error at line 3, column 48.
Encountered: "d" (100), after : "\'<" : at Line: 2 : in file: inline evaluation of: ``
String ExifInfo= getExifInfo(); slideCaption= slideCaption + '<div clas . . . '' : String ExifInfo = getExifInfo ( )
in index.htt at line number 443


The message is not correctly displayed in the preview, so please open the attached screenshot or text file.

I have no idea what the problem is. I get no error message if I remove lijn 444 and let line 443 as it is!
I get also no error message if I replace lijn 443 by
slideCaption= slideCaption + ExifInfo;

Please help!

Edited by: AndreWolff on 09-Jun-2018 09:21

Edited by: AndreWolff on 09-Jun-2018 09:29

AndreWolff

Posts: 1,841
Registered: 14-Dec-2007
Re: Strange error report for the wrong line number
Posted: 09-Jun-2018 09:49   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
I found the solution:
slideCaption= slideCaption + "<div class="\"exifInfo\"">" + ExifInfo + "</div>"; 


If I added this to the message above, it is invisible!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums