HTML form to pass parameters to Ruby, view online
-
We have this nice Ruby script that draws our product based on some input boxes.
I was thinking it would be cool if we could pass the product parameters via an HTML form on our website, which means the server would have to support Ruby processing (does that even exist?). The script would save the model on the server, and finally our web page would render the model using an online viewer (similar perhaps to Sketchfab but that does not appear to support models created on the fly). I can imagine there would be some jquery to pass the data back & forth.
Is this doable? If this is already being done I would appreciate a link.
-
Ruby is just a general purpose (mostly server) programming language. What you are concerned about (and what is more important) is whether the API in question is available for servers, in this case the graphical SketchUp application with its SketchUp API.
-
You are right of course. And since most servers, including ours, are running Linux, it looks like my grand idea is dead
-
Hello Buckyman,
what you ask, can be done. Actually I have a working prototype that works like a charm. As a server you can opt for windows or mac. Sadly not linux. The main problem here is more a legal question that comes with Sketchup being remote-controlled.
Follow here if you like :
http://forums.sketchup.com/t/own-ruby-extension-and-sketchup-pro-license/11615/5
Advertisement