hagai
09-09-2003, 01:19 PM
Hi, i got a small problem.
I have a cgi script which returns a specific, but changing number. ie. i call the script and it returns a 5, next time i call it it may return a 8.
What i want to do is store this number in a var in my javascript. It doesnt matter if the number is stored in the form of a string, i just need to know how i can assign the value of a returned value from a cgi script to a javascript var.
So i have http://www.whatever.com/cgi-bin/retNum.cgi and i want to do var num = the value from the above script.
Is there any way of doing this?
Thanks
Hagai
I have a cgi script which returns a specific, but changing number. ie. i call the script and it returns a 5, next time i call it it may return a 8.
What i want to do is store this number in a var in my javascript. It doesnt matter if the number is stored in the form of a string, i just need to know how i can assign the value of a returned value from a cgi script to a javascript var.
So i have http://www.whatever.com/cgi-bin/retNum.cgi and i want to do var num = the value from the above script.
Is there any way of doing this?
Thanks
Hagai