I am getting the following odd JavaScript error: Unterminated string constant, line 78, char 123
Well, the given line reads:
<a href='#' onMouseDown="openWindow('picture.php3?fname=sailingDK1.jpg','picture','width=400,height=264,screenX=200,screenY=100,top=100,left=200')">
and char # 123 is the last 0 (zero) in screenX=200. Now what is up with that?
The openWindow function looks as follows:
<script language="JavaScript">
<!--
function openWindow(url,name,features) {
window.open(url,name,features);
}
//-->
</script>
The code works fine (only tested in IE), but the error message is driving me nuts...
Any help is greatly appreciated.
Christian
------------------
Axie automatically performs free, customizable searches for new
websites and delivers the links to members by personalized email. http://www.axie.com/
Try retyping the line from scratch. It's possible that a linefeed character slipped in somehow without a carriage return (or vice versa) and your editor isn't showing it. I had this happen to me once in HotDog Pro, for example.
Well, I typed the line again -- the same way -- and everything worked like a charm... I really, really dislike those kinds of errors, especially since I spend 5+ hours pulling my hair out when re-writing a TCP test program for a Xkernel project. Turned out my mysterious error was a tab that had been deleted, but left behind an invisible character.
Thanks.
Christian.
------------------
Axie automatically performs free, customizable searches for new
websites and delivers the links to members by personalized email. http://www.axie.com/
Bookmarks