Hi,
Can anyone find why this setTimeout() loop isn't working - I'm getting:
'data_to_send' is undefined
Any help much appreciated, thanks.
BTW, ajax.js contains my handling for creating the XMLHttpRequest, called createRequest().
<html>
<head>
<script src="ajax.js"...
Thanks very much BabyJeffy.
I'll keep this in mind in case I need to turn to Ajax. However I'm trying to avoid it for now until I've started studying it. In the meantime, I'm trying to do this in Javascript. Any ideas on this?
Thanks for the reply.
Unfortunatlely I'm a novice and still learning this stuff. Do you mind pasting an example of code that would work? I've been reading up for days on this!
Hi,
I'm stuck, but it's almost working!
From a html page, my javascript calls a server-side php script. The php reads a value from a server-side .txt file and passes it back as a javascript variable. This all works fine.
However, I want it to loop within a javascript function every 5...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.