开发者

how to debug java script error?

开发者 https://www.devze.com 2023-01-12 12:33 出处:网络
i am using around 200 lines of java scriptin my jsp page, but while logging into myapplication javascript erro开发者_C百科r is throwing.. like below

i am using around 200 lines of java script in my jsp page, but while logging into my application javascript erro开发者_C百科r is throwing.. like below

 Line :1045

 char : 15 

 Error : Expected ')'

 Code : 0

 URL : https://locahhost:9443/gchweb/showWelcome.do

how to rectify it.(my total page size is around 400 only including jsp tags). help me on this. i am struggling a lot.


If I understand correctly, your problem is that you can' find Line 1045 because you have dynamic content in the same page.

If you use firefox+firebug you'll be able to click the error in the javascript console to show the content of the line.


The line number is not the line in the JSP source code, it's the line in the generated page that the browsers sees.

Use the View Source function in your browser to see which line it is that is causing the error.


The line number is per the source of the page on the client (i.e. use view source in the browser), not per the source of the page on the server. Presumably it's much longer on the client.

0

精彩评论

暂无评论...
验证码 换一张
取 消