• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does Onload supported in Mozilla Firefox 3.6

 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!!

I need to know i can use onload function in jsp to call java script as soon as page loads for Mozilla Fire Fox browser? If so Please assist me .....
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try? What happened?

Eric
 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

Nice to hear from you !

Yes i tried it didnt work.I am using Netbeans IDE. Its working with Chrome browser and also onunload function is working.. below is my code

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works fine for me:

http://jsbin.com/ulovi3

Eric
 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric!!

Do i need to place my script inside head tag???

I have placed them outside head tag
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You put it between the head and body? If your markup is invalid, what might happen is anyone's guess.
 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even i tried keeping script in head tag ...

Still its not working..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strip the page down to the minimum that still exhibits the problem and post it.
 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my JSP code..





And the code continues.... Hope i get some solution please..
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the JavaScript console, do you see errors?

Ctrl-Shift-J

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So much for "minimum"...
 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

There are no errors. Do i need to inport any libraries for that.?
 
Paul Clapham
Sheriff
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Krish Khan wrote:Here is my JSP code..

First of all, post the HTML you generate. Not the thing which is generating it. And second, get rid of the 90% of that code which doesn't have anything to do with your question. A reasonable example would be no more than 10 lines of code.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic