This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Call Java Script without any event in JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Call Java Script without any event in JSP Page" Watch "Call Java Script without any event in JSP Page" New topic
Author

Call Java Script without any event in JSP Page

Gajanan Bandale
Greenhorn

Joined: May 09, 2005
Posts: 22
I want to call a Java Script Function in JSP Page without any event active.... But it should not at OnLoad Event


Thanks in Advance....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
If not during an event, then when specifically should that JS code run?

You can use a timer to run code after a set amount of time has passed.


Ping & DNS - updated with new look and Ping home screen widget
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
As Ulf said, when do you actually want it to run?

There is a thing called inline, just add the call to the page. fires when executed.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call Java Script without any event in JSP Page
 
Similar Threads
how to invoke a jsp from java script
japplet or jpanel
japplet or jpanel ? (struts )
Textbox value removal
servlets and Jsp's