On Jun 27, 2007, at 10:54 PM, list. rb wrote: > Try referencing the full path to the script, i.e > xmlHttp.open("GET","/home/auser/scripts/test2.rb",true); > > On 6/27/07, Gale CC <galecho / gmail.com> wrote: >> >> I'm pretty sure the shebang line is correct. I verified by doing >> "which >> ruby" and also ran the file independently from the shell by typing >> "./test2.rb" and it works. >> >> Also the file runs fine when its set as an "action" to a form, but >> not >> in this case when its run from inside a javascript script. Any idea >> what's wrong ? >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> sounds like it is all about the Apache configuration. If you have access, look at httpd.conf whether you do or not, definitely check with the admin