in reply to CGI/AJax Question

I'm not entirely sure what you're asking for, but if you want to call your report function on an interval, you can use javascript's setInterval() or setTimeout() methods.

Here is an example

Replies are listed 'Best First'.
Re^2: CGI/AJax Question
by realmonk (Initiate) on Apr 26, 2010 at 15:51 UTC
    Yes, i have tried using setInterval() however, i am having issues passing strings into this function.
    onclick="setInterval('alert('test')', 5000)"
    i also tried
    onclick="setInterval('alert(\'test\')', 5000)"
    however, when i run with number it works fine.
    onclick="setInterval('alert(20)', 5000)"

      This is a Javascript issue. You need to learn how to debug your Javascript. Your browser(s) will tell you what they find unacceptable with your Javascript, and you have been shown various ways to avoid the single quotes/double quotes issue already. But basically, this website is not the forum for Javascript questions.