troubleshooting Question

Problem with javascript:setInterval

Avatar of dnsoft
dnsoft asked on
JavaScriptScripting LanguagesJScript
39 Comments3 Solutions2110 ViewsLast Modified:
Hi,

I use a code to display the counter result and to refresh that value I actually refresh all the page, I'd like to refresh the script only without refreshing the full page but I don't know how to modify the code to make it work.
Here's the actual code using the page refresh:
<body bgcolor="#566079" align="center">
<font face="Verdana" size="1" color="#C0C0C0">
<script language="JavaScript" src="../cgi-bin/online/online.cgi?output=javascript"> </script> visitors online
</font>
</body>


And here's the code I'd like to see:
<head>
<script language="JavaScript">
function vonline()
TO BE REPLACED BY ?
</script>

</head>
<body onLoad="javascript:setInterval('vonline()',5000);" bgcolor="#566079" align="center">
<font face="Verdana" size="1" color="#C0C0C0">
<script language="JavaScript" src="../cgi-bin/online/online.cgi?output=javascript"> </script> visitors online TO BE REPLACED BY ?
</font>
</body>

Thank you for all help...
G.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 3 Answers and 39 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 39 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros