Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
HTML Pages with CSS and JavaScript
Showing the server time in JSP page
Seby Pappachan
Greenhorn
Posts: 12
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi, I am new to JavaRanch and even to
Java
Can some one help me resolving the following query?
How can I display the server time in the client side (
JSP
) without the page being refreshed in each second?
Thanks in advance!
Seby
[ November 02, 2008: Message edited by: Seby Pappachan ]
Amit Ghorpade
Bartender
Posts: 2856
10
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Welcome to Javaranch Seby Pappachan
,
When you want to do something like this that works on the client side, then you need client side scripting like Javascript (has nothing to do with Java). Google for something like Javascript clock and you'll get the script.
This one
is a sample.
Hope this helps
SCJP, SCWCD.
|
Asking Good Questions
|
Eric Pascarello
author
Posts: 15385
6
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
var d = new Date(" PUT THE SERVER TIME HERE!!! ");
Than use some time script you can find on the net that uses setInterval()
Eric
Seby Pappachan
Greenhorn
Posts: 12
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks !!
That's worked
Amit Ghorpade
Bartender
Posts: 2856
10
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Originally posted by Seby Pappachan:
Thanks !!
That's worked
You are welcome
SCJP, SCWCD.
|
Asking Good Questions
|
We begin by testing your absorbancy by exposing you to this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Showing maintenance page
Ajax - Struts - JSP
Progress Bar in JSP
Caching data base results
JSP Performance
More...