File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes java script error: object required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "java script error: object required" Watch "java script error: object required" New topic
Author

java script error: object required

Ravikanth thota
Greenhorn

Joined: Apr 09, 2012
Posts: 24
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ravikanth thota
Greenhorn

Joined: Apr 09, 2012
Posts: 24
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java script error: object required
 
Similar Threads
center a div inside a div
Is it possible to put a button inside autocomplete in jquery ui plugin?
jQuery not working on page
how to copy the data one form field to another form field by using check box
On statechange ()