Beginning with Ajax

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jul 2009
Posts: 85
Reputation: AshtonHogan is an unknown quantity at this point 
Solved Threads: 1
AshtonHogan AshtonHogan is offline Offline
Junior Poster in Training

Re: Beginning with Ajax

 
0
  #11
Sep 29th, 2009
*Deleted*
Last edited by AshtonHogan; Sep 29th, 2009 at 12:30 pm.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 85
Reputation: AshtonHogan is an unknown quantity at this point 
Solved Threads: 1
AshtonHogan AshtonHogan is offline Offline
Junior Poster in Training

Re: Beginning with Ajax

 
0
  #12
Sep 29th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

Tags
ajax

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC