From: Gale CC Date: 2007-07-15T12:07:04+09:00 Subject: Passing arguments to ruby script Hi, I'm using ajax with ruby for my application, and need to send an argument to the ruby script for further action. I couldnt do it using the command line method, since the ruby script is being called from inside a JavaScript script. The following line of code calls the ruby script: xmlHttp.open("GET","ajaxhandler.rb",true) If I do something like: xmlHttp.open("GET","ajaxhandler.rb" + myargument,true) then the script fails. The PHP way to handle such cases is to add "?argument=argumentvalue" after the file name. And then within the PHP script you can further parse the values. Is there anything similar in Ruby ? Or is there any other fix to this problem ? Thanks, Gale -- Posted via http://www.ruby-forum.com/.