Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: do classes have properties
|
Posted: Jun 14, 2002 10:09 PM
|
|
I don't understand exactly what you mean by having your javascript call your java code. The JSP or Servlet that is writing the page could just put the time somewhere. If you want it more dynamic, javascript can get the time itself by instantiating a Date object, like so:
var currentTime = new Date();
document.write( "The current time is " + currentTime );
If you want it to be kept up to date, you could keep updating a form element. Maybe I don't understand what you are trying to do...
|
|