in reply to Re: CGI/AJax Question
in thread CGI/AJax Question

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)"

Replies are listed 'Best First'.
Re^3: CGI/AJax Question
by Corion (Patriarch) on Apr 26, 2010 at 16:10 UTC

    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.