This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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: 39576
    
  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
japplet or jpanel
Textbox value removal
how to invoke a jsp from java script
servlets and Jsp's
japplet or jpanel ? (struts )