Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onload function()

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

I have criteria like when ever a user log in using my application i need to check the password changed date from data base and display message in pop up as how many days since changed the password date.
I am using struts 2 and sql db.

For this I used onload function in body tag and added a function in script just put alert message for trail its working in chrome browzer, i am getting alert message. but its not working in mozilla . I need onload function for mozilla can any one help me.?

I am using mozilla 3.6

here is my code..



Or any one can tel me how to use onload function in body tag with an example???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose an appropriate forum for your posts. This forum is for questions on JSP. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read TellTheDetails. Without showing us your code, all we could do would be to guess.

And when posting code, be sure to UseCodeTags.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the JavaScript Console for error messages?

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

There is no error in console...

This script is successfully running in Chrome browser... I want it to work for Mozilla
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why di we now have two threads on this? http://www.coderanch.com/t/514420/HTML-JavaScript/Does-Onload-supported-Mozilla-Firefox

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic