943,712 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 29th, 2009
0

Re: Beginning with Ajax

*Deleted*
Last edited by AshtonHogan; Sep 29th, 2009 at 12:30 pm.
Reputation Points: 7
Solved Threads: 1
Posting Whiz in Training
AshtonHogan is offline Offline
209 posts
since Jul 2009
Sep 29th, 2009
0

Re: Beginning with Ajax

Here is the servlet Version:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. out.println(time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());

Then just add the following code to your Javascript on the JSP:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. function init(){
  2. window.setInterval("ajaxFunction()",1000);
  3. }
And call it here:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <body onload="init();">
This will run a function every 1000ms.
Reputation Points: 7
Solved Threads: 1
Posting Whiz in Training
AshtonHogan is offline Offline
209 posts
since Jul 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Can I control the Screen resolution in web page?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Posting data to a remote server





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC