Hi everyone Is there anything similar to ActiveX launchApp in Rails so that I can start an application in the client-side? This is how I done it with ActiveX: <INPUT type="button" VALUE="BeyondCompare" onclick="launchApp(''c:\\BeyondCompare\\BC2.exe'')"></input> Thank you very much Victor -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
rails won''t have anything like what you are looking for as it is clientside functionality specific to Windows/IE (ActiveX). I assume you''re using the LaunchInIE ActiveX control in order to do this. If so, just do it the way you''ve done it previously. Just keep in mind that 1) every client has to have this control installed and 2) you''re limited to IE (and windows for that matter) for this functionality. more info at: http://www.whirlywiryweb.com/q/launchinie.asp Chris On 8/28/06, Victor Fan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi everyone > > Is there anything similar to ActiveX launchApp in Rails so that I can > start an application in the client-side? > > This is how I done it with ActiveX: > > <INPUT type="button" VALUE="BeyondCompare" > onclick="launchApp(''c:\\BeyondCompare\\BC2.exe'')"></input> > > Thank you very much > > Victor > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Slightly OT now, but aren''t there security issues in launching a local application in response to clicking a button on the web? Cheers Mohit. Chris Hall wrote:> rails won''t have anything like what you are looking for as it is > clientside functionality specific to Windows/IE (ActiveX). > > I assume you''re using the LaunchInIE ActiveX control in order to do > this. If so, just do it the way you''ve done it previously. Just keep > in mind that 1) every client has to have this control installed and 2) > you''re limited to IE (and windows for that matter) for this > functionality. > > more info at: http://www.whirlywiryweb.com/q/launchinie.asp > > Chris > > On 8/28/06, Victor Fan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> Hi everyone >> >> Is there anything similar to ActiveX launchApp in Rails so that I can >> start an application in the client-side? >> >> This is how I done it with ActiveX: >> >> <INPUT type="button" VALUE="BeyondCompare" >> onclick="launchApp(''c:\\BeyondCompare\\BC2.exe'')"></input> >> >> Thank you very much >> >> Victor >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Tue, Aug 29, 2006 at 07:57:34PM +0800, Mohit Sindhwani wrote:> > Slightly OT now, but aren''t there security issues in launching a local > application in response to clicking a button on the web?well, there are security issues with running IE, but people do it anyway - so that''s at least consistent ;-) Jens> > Cheers > Mohit. > > Chris Hall wrote: > > rails won''t have anything like what you are looking for as it is > > clientside functionality specific to Windows/IE (ActiveX). > > > > I assume you''re using the LaunchInIE ActiveX control in order to do > > this. If so, just do it the way you''ve done it previously. Just keep > > in mind that 1) every client has to have this control installed and 2) > > you''re limited to IE (and windows for that matter) for this > > functionality. > > > > more info at: http://www.whirlywiryweb.com/q/launchinie.asp > > > > Chris > > > > On 8/28/06, Victor Fan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > >> Hi everyone > >> > >> Is there anything similar to ActiveX launchApp in Rails so that I can > >> start an application in the client-side? > >> > >> This is how I done it with ActiveX: > >> > >> <INPUT type="button" VALUE="BeyondCompare" > >> onclick="launchApp(''c:\\BeyondCompare\\BC2.exe'')"></input> > >> > >> Thank you very much > >> > >> Victor > > > > > > >-- Jens Krämer jk-UayuY8ajoWPk1uMJSBkQmQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
that''s the purpose of using the LaunchInIE ActiveX control. It''s supposed to be secure. Note that I am not recommending it''s use, just answering a question. I personally would never allow this in any app I have control over. Chris On 8/29/06, Mohit Sindhwani <mo_mail-RxrYI66vbj0AvxtiuMwx3w@public.gmane.org> wrote:> > Slightly OT now, but aren''t there security issues in launching a local > application in response to clicking a button on the web? > > Cheers > Mohit. > > Chris Hall wrote: > > rails won''t have anything like what you are looking for as it is > > clientside functionality specific to Windows/IE (ActiveX). > > > > I assume you''re using the LaunchInIE ActiveX control in order to do > > this. If so, just do it the way you''ve done it previously. Just keep > > in mind that 1) every client has to have this control installed and 2) > > you''re limited to IE (and windows for that matter) for this > > functionality. > > > > more info at: http://www.whirlywiryweb.com/q/launchinie.asp > > > > Chris > > > > On 8/28/06, Victor Fan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > >> Hi everyone > >> > >> Is there anything similar to ActiveX launchApp in Rails so that I can > >> start an application in the client-side? > >> > >> This is how I done it with ActiveX: > >> > >> <INPUT type="button" VALUE="BeyondCompare" > >> onclick="launchApp(''c:\\BeyondCompare\\BC2.exe'')"></input> > >> > >> Thank you very much > >> > >> Victor > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
That''s interesting - I didn''t really think that this would usually be acceptable, but I guess that there are use cases for this. In fact, the only other way I knew to launch a local application was a bit silly - either use a plugin or send a file of a format that is registered to your PC application - but there are numerous imponderables with that approach :D Cheers Mohit. Chris Hall wrote:> that''s the purpose of using the LaunchInIE ActiveX control. It''s > supposed to be secure. Note that I am not recommending it''s use, just > answering a question. I personally would never allow this in any app > I have control over. > > Chris > > On 8/29/06, Mohit Sindhwani <mo_mail-RxrYI66vbj0AvxtiuMwx3w@public.gmane.org> wrote: > >> Slightly OT now, but aren''t there security issues in launching a local >> application in response to clicking a button on the web? >> >> Cheers >> Mohit. >> >> Chris Hall wrote: >> >>> rails won''t have anything like what you are looking for as it is >>> clientside functionality specific to Windows/IE (ActiveX). >>> >>> I assume you''re using the LaunchInIE ActiveX control in order to do >>> this. If so, just do it the way you''ve done it previously. Just keep >>> in mind that 1) every client has to have this control installed and 2) >>> you''re limited to IE (and windows for that matter) for this >>> functionality. >>> >>> more info at: http://www.whirlywiryweb.com/q/launchinie.asp >>> >>> Chris >>> >>>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Chris Hall wrote:> rails won''t have anything like what you are looking for as it is > clientside functionality specific to Windows/IE (ActiveX). > > I assume you''re using the LaunchInIE ActiveX control in order to do > this. If so, just do it the way you''ve done it previously. Just keep > in mind that 1) every client has to have this control installed and 2) > you''re limited to IE (and windows for that matter) for this > functionality. > > more info at: http://www.whirlywiryweb.com/q/launchinie.asp > > ChrisHi Chris, thx for your reply Do you know any other way that is not limited to IE? Victor -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Mohit Sindhwani wrote:> That''s interesting - I didn''t really think that this would usually be > acceptable, but I guess that there are use cases for this. In fact, the > only other way I knew to launch a local application was a bit silly - > either use a plugin or send a file of a format that is registered to > your PC application - but there are numerous imponderables with that > approach :D > > Cheers > Mohit.Thank you Mohit Can you give me some more details about these? Victor -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Victor Fan wrote:> Mohit Sindhwani wrote: > >> That''s interesting - I didn''t really think that this would usually be >> acceptable, but I guess that there are use cases for this. In fact, the >> only other way I knew to launch a local application was a bit silly - >> either use a plugin or send a file of a format that is registered to >> your PC application - but there are numerous imponderables with that >> approach :D >> >> Cheers >> Mohit. >> > > Thank you Mohit > > Can you give me some more details about these? > > Victor >It''s a silly approach (even in my mind)... basically, the idea is when you send a ".pls" file, the browser asks if it should load the file with WinAmp (since it''s a playlist) or a ''.doc'' file with Word and so on. Now, if you had a file type ''bcft'' (say, BC File Type) which is registered in Windows to being launched by an application called "BC.exe" then if you click on the link on the website and it sends the file "something.bcft" (with the correct MIME type - which may need to be configured on the webserver). When the web browser encounters this file, it should ask to either save the file or open it with the registered application (BC.exe) installed on the PC. Things that may get in the way: 1. The application must be installed on the PC 2. It must be registered to handle the file of that format 3. The web server will need to send the right MIME type 4. There may be some configuration in the web browser to deal with that MIME type 5. There may be some conflict over the file extension and may get in the way. 6. At least a few other things that I have not thought about... I think it _may_ work, but there may be many things to think about... and this will not return data to the web browser (if that''s needed) Cheers Mohit. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Mohit Sindhwani wrote:> It''s a silly approach (even in my mind)... basically, the idea is when > you send a ".pls" file, the browser asks if it should load the file with > WinAmp (since it''s a playlist) or a ''.doc'' file with Word and so on. > > Now, if you had a file type ''bcft'' (say, BC File Type) which is > registered in Windows to being launched by an application called > "BC.exe" then if you click on the link on the website and it sends the > file "something.bcft" (with the correct MIME type - which may need to be > configured on the webserver). When the web browser encounters this > file, it should ask to either save the file or open it with the > registered application (BC.exe) installed on the PC. > > Things that may get in the way: > 1. The application must be installed on the PC > 2. It must be registered to handle the file of that format > 3. The web server will need to send the right MIME type > 4. There may be some configuration in the web browser to deal with that > MIME type > 5. There may be some conflict over the file extension and may get in the > way. > 6. At least a few other things that I have not thought about... > > I think it _may_ work, but there may be many things to think about... > and this will not return data to the web browser (if that''s needed) > > Cheers > Mohit.That''s an interesting approach Mohit, really appreciated, but I would like to have a bit more sophisticated approach that I don''t need to configurate the client side''s setting (because I won''t be able to). O, I am doing this for my company''s intranet not for the internet in case anyone wonders :) Thankz again for your reply Victor -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Victor Fan wrote:> Mohit Sindhwani wrote: > > >> It''s a silly approach (even in my mind)... basically, the idea is when >> you send a ".pls" file, the browser asks if it should load the file with >> WinAmp (since it''s a playlist) or a ''.doc'' file with Word and so on. >> >> ** snip ** >> >> Cheers >> Mohit. >> > > That''s an interesting approach Mohit, really appreciated, but I would > like to have a bit more sophisticated approach that I don''t need to > configurate the client side''s setting (because I won''t be able to). >Remember - I did tell you that it was a bit silly! :D As far as not configuring anything on the> O, I am doing this for my company''s intranet not for the internet in > case anyone wonders :) >What is the application that will be launched? Is it a standard application in a standard place? Can you create a hard coded link to it in the webpage? file:///F:/Technology/Tools/MySQL-Front_Setup.exe Would that work? It''s not very sophisticated, either :-S> Thankz again for your reply >You are most welcome!> Victor >Cheers Mohit. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
my question would be why do you need this functionality in the first place? from your example, it just looks like you want to run the app. why not just let the user run it themselves? now if you want beyond compare to automatically run when you download a file from the server, that is a completely different scenario than what you presented and the author(s) of beyond compare should be more able to assist you. Chris On 8/29/06, Victor Fan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Mohit Sindhwani wrote: > > > It''s a silly approach (even in my mind)... basically, the idea is when > > you send a ".pls" file, the browser asks if it should load the file with > > WinAmp (since it''s a playlist) or a ''.doc'' file with Word and so on. > > > > Now, if you had a file type ''bcft'' (say, BC File Type) which is > > registered in Windows to being launched by an application called > > "BC.exe" then if you click on the link on the website and it sends the > > file "something.bcft" (with the correct MIME type - which may need to be > > configured on the webserver). When the web browser encounters this > > file, it should ask to either save the file or open it with the > > registered application (BC.exe) installed on the PC. > > > > Things that may get in the way: > > 1. The application must be installed on the PC > > 2. It must be registered to handle the file of that format > > 3. The web server will need to send the right MIME type > > 4. There may be some configuration in the web browser to deal with that > > MIME type > > 5. There may be some conflict over the file extension and may get in the > > way. > > 6. At least a few other things that I have not thought about... > > > > I think it _may_ work, but there may be many things to think about... > > and this will not return data to the web browser (if that''s needed) > > > > Cheers > > Mohit. > > That''s an interesting approach Mohit, really appreciated, but I would > like to have a bit more sophisticated approach that I don''t need to > configurate the client side''s setting (because I won''t be able to). > > O, I am doing this for my company''s intranet not for the internet in > case anyone wonders :) > > Thankz again for your reply > > Victor > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Chris Hall wrote:> my question would be why do you need this functionality in the first > place? from your example, it just looks like you want to run the app. > why not just let the user run it themselves? > > now if you want beyond compare to automatically run when you download > a file from the server, that is a completely different scenario than > what you presented and the author(s) of beyond compare should be more > able to assist you. > > ChrisHi Chris What I am trying to do is writing an web application in Rails to do automated test. After the tests completed, the results would be stored in a database. Now instead of doing diff at the server, we would like to launch a program (at this point, we picked beyond compare) to compare the results (output files) at the client side. Thank you Victor -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
OK this is seriously off topic... What about a ruby vm plugin ala java Why? Well I would like to use ruby gl to make 3d vr environments That''s why ;) -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Chris Hall Sent: Tuesday, August 29, 2006 6:29 AM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: Start a process in the client-side that''s the purpose of using the LaunchInIE ActiveX control. It''s supposed to be secure. Note that I am not recommending it''s use, just answering a question. I personally would never allow this in any app I have control over. Chris On 8/29/06, Mohit Sindhwani <mo_mail-RxrYI66vbj0AvxtiuMwx3w@public.gmane.org> wrote:> > Slightly OT now, but aren''t there security issues in launching a local > application in response to clicking a button on the web? > > Cheers > Mohit. > > Chris Hall wrote: > > rails won''t have anything like what you are looking for as it is > > clientside functionality specific to Windows/IE (ActiveX). > > > > I assume you''re using the LaunchInIE ActiveX control in order to do > > this. If so, just do it the way you''ve done it previously. Just keep > > in mind that 1) every client has to have this control installed and 2) > > you''re limited to IE (and windows for that matter) for this > > functionality. > > > > more info at: http://www.whirlywiryweb.com/q/launchinie.asp > > > > Chris > > > > On 8/28/06, Victor Fan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > >> Hi everyone > >> > >> Is there anything similar to ActiveX launchApp in Rails so that I can > >> start an application in the client-side? > >> > >> This is how I done it with ActiveX: > >> > >> <INPUT type="button" VALUE="BeyondCompare" > >> onclick="launchApp(''c:\\BeyondCompare\\BC2.exe'')"></input> > >> > >> Thank you very much > >> > >> Victor > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---