@Colin the rails server is running in a VPS with nginx and unicorn.
@Fernando, thank you very much, but it is not alternative for this
project,
i will study the chrome devs API for a future and another project, have
you
used already?
I am looking for a way to create sockets and controls (state machine)
from
a rails app or another way to do that.
You do realize that what you’re talking about here is VERY DANGEROUS.
Web browsers work very hard to prevent exactly what you’re describing
here. This is the reason why JavaScript is sandboxed and provided no
access outside of the browser environment.
That being said, you could write your own browser plugin and do whatever
you want. Of course, you will then be exposing anyone dumb enough to
install your plugin to all the sorts of security holes that ActiveX
based browser plugins, among others, became famous for.
If I were in your shoes I would instead write native applications that
communicate with your Rails application via web services. A good example
of this is the Pivotal Tracker app for iPhone and iPad.
This way you can ask people, that have some trust in you, to install
your native application. It will then communicate directly to your Rails
application and leave the user’s browser environment secure and free
from “drive-by” security vulnerabilities.
@Colin the rails server is running in a VPS with nginx and unicorn.
@Fernando, thank you very much, but it is not alternative for this
project,
i will study the chrome devs API for a future and another project, have
you
used already?
I am looking for a way to create sockets and controls (state machine)
from
a rails app or another way to do that.
@Colin, this is possible with ActiveX (Windows + IE only)
Yes that is true, I had rejected that as a possible solution as I
assumed no-one enables ActiveX nowadays due to the security risks, and
the fact that it only works with IE. It may allow the OP do to what
he wants however, but as Robert suggested there are better solutions.
Does the current IE still support ActiveX?
On 25 September 2013 05:09, Ricardo do Valle [email protected]
wrote:
@Colin the rails server is running in a VPS with nginx and unicorn.
So the server is running on a different computer to the browser, and
you want a page in the browser to interact with an app on the PC
running the browser. I believe this is not possible, and nor should
it be possible. Would you want a web page to be able to affect
applications running on the PC? Imagine what a malicious website
could do if this were possible.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.