Javascript Error In Line 1
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us script16389 unspecified error ie Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community an error has occurred in the script on this page windows 7 Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Javascript Error internet explorer 11 script error keeps popping up Line Numbers up vote 11 down vote favorite I have a jsp with lots of javascript code. Whenever there is a javascript error on the page, shown in the status bar of the IE browser, the line number reported to contain the
Internet Explorer Script Error
error, does not match with the line number that actually contains the error. I am doing a right click>view source to find the line number reported. But that line does not contain the error. The error, I assume, is in some other line. What could be the reason for the erroneous line numbers being reported. Please Help. javascript numbers line share|improve this question asked Jan 6 '10 at 9:03 The Machine 5464926 I can only use IE to test my application. Hence firebug is not going to be of much help. Also, i used to get the correct line numbers say about a month ago.I dont know how all of a sudden there is this frustrating discrepancy. –The Machine Jan 6 '10 at 9:13 1 In addition to the great suggestions about using the IE dev tool in IE > 8, you can also get Firebug Lite, which works in any browser, so Firebug can actually be of help :) –Kato Feb 1 '12 at 23:04 add a comment| 5 Answers 5 active oldest votes up vote 7 down vote As noted in other answers, IE is bad at reporting line numbers for errors. However, the built-in debugger (press F12) in IE8 and later is much more helpful, so I suggest you try that. share|improve this answer edited Jun 25 '13 at 13:49 answered Jan 6 '10 at 9:17 Tim Down 193k42309393 I agree. "Tools -> Developer Tools" is what you want instead of "View Source" Also if you change your internet options to stop/prompt on javascript errors, it usually comes up with a "do you want to debug?" button which takes you straight in to the dev tools –Graza Jan 6 '10 at 11:47 add a comment| up vote 4 down vote accepted I found the problem after a lot of trials. Hopefully, this will be of use to some guys facing this frustrating problem. RightClick>View Source is the code what the browser sees to render the page. However, that is not all. Th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just http://stackoverflow.com/questions/2011837/javascript-error-line-numbers like you, helping each other. Join them; it only takes a minute: Sign up JavaScript Error line 1
New? Today's Posts FAQ Rules Guidelines Search Advanced Search Forum :: Client side development JavaScript programming how do people debug vague javascript errors (Line 1, Char 5, Error: Syntax error) If this is your first visit, be sure to check out the http://www.codingforums.com/javascript-programming/26972-how-do-people-debug-vague-javascript-errors-line-1-char-5-error-syntax-error.html FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Enjoy an ad free experience by logging in. Not a member yet? Register. Results 1 to 8 of 8 Thread: how do people debug vague javascript errors (Line 1, Char 5, Error: Syntax error) Thread Tools Show Printable Version Email this script error Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible 09-29-2003,04:43 PM #1 wac View Profile View Forum Posts Regular Coder Join Date Sep 2002 Location Cary, North Carolina, USA Posts 359 Thanks 2 Thanked 0 Times in 0 Posts how do people debug vague javascript errors (Line 1, Char 5, Error: Syntax error) Appologies for the vague title but I wasn't sure what to really put there. IE gave me this wonderful error javascript error in message when I clicked on an element with an onclick... Line: 1 Char: 5 Error: Syntax error code: 0 URL: ...blah... (a struts action url)... of course line 1 is the tag line so that's not where the error really is. The wierd thing is that the function that is suppose to occur when one clicks on the element actually works! so what the heck is the popup error box trying to tell me????? Wayne Christian Reply With Quote 09-29-2003,04:46 PM #2 requestcode View Profile View Forum Posts Regular Coder Join Date Jun 2002 Posts 626 Thanks 0 Thanked 0 Times in 0 Posts I try running it in the Mozilla or Netscape 7 browsers as their JavaScript consoles give better messages. Reply With Quote 09-29-2003,04:50 PM #3 wac View Profile View Forum Posts Regular Coder Join Date Sep 2002 Location Cary, North Carolina, USA Posts 359 Thanks 2 Thanked 0 Times in 0 Posts Yea, I used to do that too. Unfortunately, my web application is embedded in another application which wont display on netscape. It uses an old version of DynAPI, which doesn't work well on NS7, since it was really written with NS4 in mind. Wayne Christian Reply With Quote 09-29-2003,05:58 PM #4 fredmv View Profile View Forum Posts Regular Coder Join Date Jul 2003 Location Massachusetts Posts 472 Thanks 0 Thanked 0 Times in 0 Posts Yeah, the error messages i