• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange behaviour of JSP file

 
kiran bayyana
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am developing a JSP file and I wrote code for animating two images for that file. I want to run that code(JS function) in the body load event. But if I have JSP tags in my files, BODY's onload event is not working. I tried it without JSP tags(pure HTML and JS) and with other event handlers, it is working fine. Anybody, pls help. I tried image onLoad also, but it is getting into a loop continuously downloading the two images from the server.
- Kiran
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you do a view-source of the page produced by your JSP and go over it very carefully. Even a single misplaced " could be causing trouble.
Bill
 
kiran bayyana
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the solution for my problem. Actually, I am writing a jsp include tag and including another HTML file. So, since there are two BODY tags, the onLoad event of BODY is not working. Anyway, thanks William for your reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic