File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Unknown error in my JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Unknown error in my JSP" Watch "Unknown error in my JSP" New topic

Unknown error in my JSP

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 149
i'm having the below source output.

here everything is working fine but when i see in internet explorer it is giving the below screen(but still it is working fine). could you please tell me where i'm going wrong.


[Thumbnail for Err.JPG]

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

That's a JavaScript error, not something to do with JSP, so I've moved this to the HTML/JavaScript forum.

And in the future, please cut and paste error messages as text rather than attaching images of the error. Images cannot be searched and negatively affect SEO.

[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

One of your element fetches is failing. Typically Microsoft to elide the parameter so that it's harder to tell which one. Look at the HTML sent to the browser to match up line numbers.

Or if you are using a modern version of IE, open the JavaScript debugger.

Does it work in other browsers?
Rob Crowther
Ranch Hand

Joined: Nov 06, 2012
Posts: 297

I think this one will fail:

Because it's getting executed before any of the elements have loaded. Look into the DOMContentLoaded event or use jQuery which makes stuff like this much easier.

Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
I agree. Here's the link:
subject: Unknown error in my JSP
It's not a secret anymore!