Starting an exe from within the browser

All,
I’m writing a Rails based app. I’m still on Rails version 1.2.2. I
need to start an external app from within the browser, only IE and
pass an argument to it. The only way I found was using ActiveX.

and then call it with

onClick="OpenFile(‘C:\projects\some.exe c:\projects
\someinputfile.rpt’)

This works if I just use a regular HTML file and call it. In Rails for
testing I call it like this:

some content

The function gets called but the ActiveXObject never gets created.
Any ideas?
Regards
Peter

On 4 Feb 2008, at 14:03, wlodarczak wrote:

The function gets called but the ActiveXObject never gets created.
Any ideas?
By regular html file i assume you mean that you just pasted that into
a .html and opened it. That almost certainly means that different
security settings are used from the rails app (since that is bytes
arriving over the network (albeit from the same machine))

Fred

Thank you for the quick reply, lowering the security did the trick.
Peter

On Feb 4, 3:16 pm, Frederick C. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs