[thelist] Javascript LWP ?

Eric Bogs EBogs at scient.com
Mon Oct 15 11:06:51 CDT 2001

Is there a way to get a result from a cgi into a javascript variable ?
I have this cgi that will return 0 or 1... depending on the value's i give
with the cgi ofcourse.

For example: var x = GetResult("http://my.url.com/cgi-bin/getres.cgi?" +

It looks like you want to act upon the results of your CGI without
refreshing the browser.  I'd force the result of the CGI into either a
hidden frame, or use a <SCRIPT SRC="getres.cgi"> and have the CGI spit out
JS variables.


More information about the thelist mailing list