Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java script error: object required

 
Ravikanth thota
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

i have a jsp page which consists of html and javascript code. i am getting java script error in html code when more than 10 users try to access the application .

note* : Code works fine with single user. below is the code where iam getting java script error .( Error is occuring at </td> which is in red colour below )

<div id="uname" style="display:none" >
<table id="t1" border="0" >
<tr>
<td id="ttt">
<table border="0" id="t2" >
<tr id="sssrrow"></tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" id="t3">
<tr id="hnames"></tr>
</table>
</td>
</tr>
</table>

</div>
</div>

please do needfull help .....
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THat line is HTML. You can be getting a JavaScript error in HTML; it has to be in a line of JavaScript code.

Check the error message again. Maybe you misread the line number. Or the line number refers to an imported JavaScript file and not the file you are looking at. Note that in most browsers, you can pull up the error console and click on the error to be taken to the relevant line of code.
 
Ravikanth thota
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:THat line is HTML. You can be getting a JavaScript error in HTML; it has to be in a line of JavaScript code.

Check the error message again. Maybe you misread the line number. Or the line number refers to an imported JavaScript file and not the file you are looking at. Note that in most browsers, you can pull up the error console and click on the error to be taken to the relevant line of code.



Hi Jeanne

Error is referring to the line which i shown above in my Jsp Page.

Error is :

Line : 3120

char : 14

Error : object required


Line number 3120 is the line which i marked as red in the above thread in my jsp.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As already point out, it is impossible for that line to create that error.

You need to look at the HTML as sent to the browser, not the JSP source code. Do a View Source on the browser -- that's what the JavaScript engine is looking at.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic