in reply to Running CGI Scripts without redirecting the browser

I'd like to be able to call a CGI script and have it return a value without redirecting the browser. ... Can this be done with CGI?

Yes, using frames and JavaScript. The <form> tag has a "target" attribute. Using it, you can direct the CGI's output to a hidden frame. If that output happens to be JavaScript, it can side-effect the document's object mode.

This is basically the path exploited by "pushlet" technology.

  • Comment on Re: Running CGI Scripts without redirecting the browser