Welcome Guest Search | Active Topics | Members | Log In | Register

Calling external program from browser with parameters - cross-browser Options · View
Jeff
Posted: Friday, September 28, 2007 2:42:53 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 02:42:53
Date: Fri, 28 Sep 2007 09:42:53 -0700

We have an intranet website that currently uses ActiveX but we need to
make it cross-browser compatible and also get around the problems
we've been having with making it work with IE7 and Vista. We decided
to write an external application to do the work from the client side.
We are not sure how the web page can call the app though with
parameters.

For example, we want to do similar to what the MSDN Library and
Audible are doing with their File Transfer Manager and Audible
Download Manager. The user clicks a link on the website which calls
that download program and the program knows what to download.

How does one do this in a .NET app that is cross-browser compatible?
Thanks,
Jeff

Jeff
Posted: Friday, September 28, 2007 3:50:16 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 03:50:16
Date: Fri, 28 Sep 2007 10:50:16 -0700

On Sep 28, 12:00 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> > How does one do this in a .NET app that is cross-browser compatible?
>
> Write a Java applet.

Is that what those other 2 download programs are written in?
Unfortunately we don't have any Java coders here, just C# .NET ones.
Is there a way to do it in that?
Thanks,
Jeff

Jeff
Posted: Friday, September 28, 2007 4:42:57 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 04:42:57
Date: Fri, 28 Sep 2007 11:42:57 -0700

On Sep 28, 1:02 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> > Unfortunately we don't have any Java coders here, just C# .NET ones.
> > Is there a way to do it in that?
>
> No. Java is written in Java.

I'm sorry, I wasn't clear. Is there a way to do the communication from
the browser to an external C# .NET application?

bruce barker
Posted: Friday, September 28, 2007 7:18:06 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 07:18:06
Date: Fri, 28 Sep 2007 14:18:06 -0700

depends on how many browser you need to support.

write the external app in whatever language you want. then for the web
page to start and talk to it you need a browser component. (java applet
will not work due to security).

for IE, you write an active/x control
for firefox, safari and netscape you write a standard netscape plugin
(c/c++).

if you want firefox and safari on the mac, you need to build a universal
image plugin.


-- bruce (sqlwork.com)

Jeff wrote:
> We have an intranet website that currently uses ActiveX but we need to
> make it cross-browser compatible and also get around the problems
> we've been having with making it work with IE7 and Vista. We decided
> to write an external application to do the work from the client side.
> We are not sure how the web page can call the app though with
> parameters.
>
> For example, we want to do similar to what the MSDN Library and
> Audible are doing with their File Transfer Manager and Audible
> Download Manager. The user clicks a link on the website which calls
> that download program and the program knows what to download.
>
> How does one do this in a .NET app that is cross-browser compatible?
> Thanks,
> Jeff
>
DS2 Systems
Posted: Friday, September 28, 2007 5:46:20 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 17:46:20
Date: Fri, 28 Sep 2007 21:46:20 -0400

If you're AX control is in C++, you could do something like CreateProcessEx
to launch the program. Then you would use some form of interprocess
communication (IPC) to talk between the programs. I recommend TCP/IP or
shared memory. Of course there are other methods, but these are the easiest
IMHO.

"Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message
news:OHFmU6gAIHA.4160@TK2MSFTNGP06.phx.gbl...
> "Jeff" <dcwebman@hotmail.com> wrote in message
> news:1191004977.594459.309880@k79g2000hse.googlegroups.com...
>
>> I'm sorry, I wasn't clear. Is there a way to do the communication from
>> the browser to an external C# .NET application?
>
> Persuading a browser to launch an application installed on the client
> (irrespective of what that app is written in) isn't particularly
> difficult, so long as the browser is IE and you don't mind ramping down
> the security: http://www.thescripts.com/forum/thread92803.html
>
> However, ActiveX is an IE-only technology so, for cross-browser
> compatibility, you need a Java applet.
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net

DS2 Systems
Posted: Friday, September 28, 2007 5:49:02 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 17:49:02
Date: Fri, 28 Sep 2007 21:49:02 -0400

As a side note: Last time I checked firefox offers a control for running AX
controls. It has to be downloaded separately. This sounds like an intranet
application so you can pretty much tell them what they need to run. Good
luck.

"Jeff" <dcwebman@hotmail.com> wrote in message
news:1190997773.529089.273720@22g2000hsm.googlegroups.com...
> We have an intranet website that currently uses ActiveX but we need to
> make it cross-browser compatible and also get around the problems
> we've been having with making it work with IE7 and Vista. We decided
> to write an external application to do the work from the client side.
> We are not sure how the web page can call the app though with
> parameters.
>
> For example, we want to do similar to what the MSDN Library and
> Audible are doing with their File Transfer Manager and Audible
> Download Manager. The user clicks a link on the website which calls
> that download program and the program knows what to download.
>
> How does one do this in a .NET app that is cross-browser compatible?
> Thanks,
> Jeff
>

Mark Rae [MVP]
Posted: Friday, September 28, 2007 7:00:54 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 19:00:54
Date: Fri, 28 Sep 2007 18:00:54 +0100

"Jeff" <dcwebman@hotmail.com> wrote in message
news:1190997773.529089.273720@22g2000hsm.googlegroups.com...

> How does one do this in a .NET app that is cross-browser compatible?

Write a Java applet.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mark Rae [MVP]
Posted: Friday, September 28, 2007 8:02:30 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 20:02:30
Date: Fri, 28 Sep 2007 19:02:30 +0100

"Jeff" <dcwebman@hotmail.com> wrote in message
news:1191001816.014910.61810@g4g2000hsf.googlegroups.com...

>> Write a Java applet.
>
> Is that what those other 2 download programs are written in?

No idea.

> Unfortunately we don't have any Java coders here, just C# .NET ones.
> Is there a way to do it in that?

No. Java is written in Java.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mark Rae [MVP]
Posted: Friday, September 28, 2007 10:31:41 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/09/2007 22:31:41
Date: Fri, 28 Sep 2007 21:31:41 +0100

"Jeff" <dcwebman@hotmail.com> wrote in message
news:1191004977.594459.309880@k79g2000hse.googlegroups.com...

> I'm sorry, I wasn't clear. Is there a way to do the communication from
> the browser to an external C# .NET application?

Persuading a browser to launch an application installed on the client
(irrespective of what that app is written in) isn't particularly difficult,
so long as the browser is IE and you don't mind ramping down the security:
http://www.thescripts.com/forum/thread92803.html

However, ActiveX is an IE-only technology so, for cross-browser
compatibility, you need a Java applet.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jeff
Posted: Saturday, September 29, 2007 4:40:07 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 29/09/2007 04:40:07
Date: Sat, 29 Sep 2007 11:40:07 -0700

Thanks for all the replies but I'm still a little confused. As I first
said, it is an intranet website and my company has always required IE,
but will soon be supporting Firefox too hence the need for cross-
browser compatibility. We only need to support Windows users.

I did try the two Firefox plug-ins I found that are supposed to allow
ActiveX but it didn't work, at least for our ActiveX controls. It
sounds like the solution is that we still need to have an ActiveX
control in IE and a plug-in for Firefox to kick off the program.

Has anybody used MSDN Library's File Transfer Manager or Audible's
Download Manager? When I installed the File Transfer Manager, I don't
remember it installing a plug-in for Firefox so I'll need to look when
I get to work on Monday. I do know on Friday when I downloaded from
there in Firefox that it started up File Transfer Manager and let me
start the download. If there's a plug-in then that would answer the
question but if there isn't, then it's kicking off that download some
other way.

Mark Rae [MVP]
Posted: Saturday, September 29, 2007 10:34:32 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 29/09/2007 10:34:32
Date: Sat, 29 Sep 2007 09:34:32 +0100

"DS2 Systems" <tony2@ds2systems.com> wrote in message
news:3073D6EA-1560-4CED-A738-092879391394@microsoft.com...

> This sounds like an intranet application

I wondered about that but was puzzled by the cross-browser compatibility
requirement - that's not a normal requirement for an intranet app...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jeff
Posted: Sunday, September 30, 2007 11:56:14 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 30/09/2007 23:56:14
Date: Mon, 01 Oct 2007 06:56:14 -0700

On Sep 29, 1:40 pm, Jeff <dcweb...@hotmail.com> wrote:
> Has anybody used MSDN Library's File Transfer Manager or Audible's
> Download Manager? When I installed the File Transfer Manager, I don't
> remember it installing a plug-in for Firefox so I'll need to look when
> I get to work on Monday.

There is no Firefox add on that I can see for File Transfer Manager in
my browser. So somehow MS is still able to kick off a download without
a plug-in. Any suggestions on where I should check further for a
solution on how to do this?

Jeff
Posted: Tuesday, October 02, 2007 11:01:54 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 02/10/2007 23:01:54
Date: Wed, 03 Oct 2007 06:01:54 -0700

For anybody interested, it appears that the cross-browser solution is
to create your own filename extension that you then associate with
your external program. The file contains instructions to your external
program. At least that's what File Transfer Manager does in Firefox.

vanilla
Posted: Friday, October 05, 2007 10:03:56 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 05/10/2007 22:03:56
Date: Sat, 6 Oct 2007 03:03:56 -0500

Thanks for that last note on the solution you found. Sounds easy to
implement ... vanilla


"Jeff" <dcwebman@hotmail.com> wrote in message
news:1191416514.171046.165580@k79g2000hse.googlegroups.com...
> For anybody interested, it appears that the cross-browser solution is
> to create your own filename extension that you then associate with
> your external program. The file contains instructions to your external
> program. At least that's what File Transfer Manager does in Firefox.
>
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.250 seconds.