| | |
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:
Solved Threads: 1
Here is the servlet Version:
Then just add the following code to your Javascript on the JSP:
And call it here:
This will run a function every 1000ms.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
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)
function init(){ window.setInterval("ajaxFunction()",1000); }
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<body onload="init();">
![]() |
Similar Threads
- Submit data through link?? (PHP)
- Frustrating Firefox Problem while making AJAX request on an anchor (JavaScript / DHTML / AJAX)
- Roblox seeks Web Developer – .NET / Ajax or DHTML (Web Development Job Offers)
- JavaScript / AJAX Guru (Software Development Job Offers)
- IIS Setup for AJAX (JavaScript / DHTML / AJAX)
- AJAX & PHP Developer ( Full Time ) (Web Development Job Offers)
- AJAX techniques... (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Can I control the Screen resolution in web page?
- Next Thread: Posting data to a remote server
| Thread Tools | Search this Thread |
acid2 adobe air ajax ajaxcode ajaxexample ajaxhelp alphafive amf apax api arax asp beta browser codes compatible css developer development dojofoundation eclipse error ext flash flex forms frameworks google gwt gxt html ibm ie8 java javascript jquery jsf jsp listbox microsoft mouse msdn office onreadystatechange opera php post problem programming progressbar python ruby rubyconf runtime scriptlets search security session silverlight software sql stevewood tracking ui variables vista web webservice xml zend






