jason_box said the following on 5/4/2006 9:04 PM:[color=blue][color=green]
>> <button
>> onclick='var tmt = setInterval("doCallServer()",10*60*1000)'>
>> start</button>
>>
>> <button onclick='clearInterval(tmt)'>
>> stop</button>[/color]
>
> Which part of the segment of code do I make the call to the cgi
> program?[/color]
In the doCallServer() function.
[color=blue]
> I was thinking of using general input forms and have it submit and post
> to cgi, but that would still leave me with the timing issue.[/color]
No, setInterval sets that timer. Whether you had a timing issue or not
(and how you solved it) would depend on how you update the page.
[color=blue]
> Also on another note, on this line
>[color=green]
>> onclick='var tmt = setInterval("doCallServer()",10*60*1000)'>[/color]
>
> 10*60*1000, what units is this in?[/color]
milliseconds and should probably be hard coded as 600000 instead of the
browser doing multiplication every time.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/