From: Kent Friis Date: 2009-09-01T04:40:13+09:00 Subject: Re: HTML posting to ruby script? Den Mon, 24 Aug 2009 09:17:56 -0500 skrev Brad Mr: > 7stud -- wrote: >> Brad Mr wrote: >>> Ok new to Ruby. >>> >>> I have an HTML form that I want a user to enter data, and when the >>> SUBMIT button is pressed, the HTML POST (with the data) goes to a Ruby >>> script to process the data (no web server running) into ruby variables >>> to be used in other Ruby Scripts. >>> >>> Again this is meant to be able to run offline >> >> Web pages have no access to the local file system--for security reasons. >> You wouldn't be able to browser the internet if a web page could >> suddenly flood every folder on your computer with thousands of >> advertisements. And you say that the web browser is offline, which >> means the web page can't communicate with a server. So the question is: >> where is the ruby script located? You see the dilemma? > > If that is true then how does Javascript work if you make all function > definition in a single seperate *.js file while, calls to its function, > and you don't need a web server for that? Javascript runs in the browser. /Kent -- "The Brothers are History"