views:

204

answers:

5

I would like to create a browser plugin which works LIKE flash, with embedded content from my application on the page.

How would I go about doing this? Is it doable with .net applications?

Thanks for the help.

EDIT: To clarify, I have no intention of making something EXACTLY like flash, or remotely similar. I merely wish to be able to embed my application in-browser, and let the user pass parameters or whatever.

+4  A: 

Flash and Silverlight are both decent platforms for writing your own custom apps which run in the browser and display custom content. If you're familiar with .NET, then writing a Silverlight app should be pretty straightforward.

Silverlight is probably what you are looking for since it allows you to write self contained .NET apps which run inside the browser. You can pass parameters to it, or allow it to make any sort of WCF call(REST/SOAP/XML-RPC/etc) or call any javascript function on your page.

Jesse Weigert
I would prefer to not use Silverlight, and in this case Flash is far from sufficient.
Cyclone
What is wrong with Silverlight? This is precisely the purpose it was designed for.
Jesse Weigert
@Cyclone: But Silverlight does exactly what you ask. Maybe you should clarify your original question?
Cory Charlton
I have an EXISTING application which I would like to embed in-browser, with a user passing parameters to it.
Cyclone
@Cyclone: and what exactly about your application makes it non-compatible with Silverlight? Interop?
Cory Charlton
I believe you may want to look at the god-forsaken API that is ActiveX for that.. but it's not nearly so trivial as you would think.
Earlz
It seems that the consensus is to use Silverlight. Assuming your program doesn't do any crazy interop/pinvoke magic, it should be a simple case of swapping your presentation code to use WPF and recompile for Silverlight. Otherwise, you're going to have to learn the ActiveX/NPAPI routes and try and get your app to behave properly in that environment.
Jesse Weigert
How can I start using Silverlight?
Cyclone
http://silverlight.net/getstarted/
Jesse Weigert
@Cory Where exactly are you looking? Thanks Jesse...
Cyclone
@Cyclone: Sorry should have been: File -> New -> Project -> Silverlight -> ...
Cory Charlton
I'm in Express.
Cyclone
Visual Studio Web Express 2010 should let you build Silverlight apps.
Jesse Weigert
+2  A: 

Be aware that if you actually want more than a handful of people to be able to use your plug-in you'll need to deal with versions for all sorts of operating systems and platforms. If it's just for something on a local office intranet you might be ok, but otherwise you'll end up needing to write Mac, Windows, Windows 64bit, Linux, Linux 64bit, iPhone, Android, etc. versions. You'll then need to take care of really complex security issues and weird bugs that people have all the time. It's not a small undertaking.

Do you want to do something that you can't already do just by using one of the existing plugins like Flash or Java?

Colin Coghill
Or Silverlight since Cyclone wants to use .NET
Jesse Weigert
Windows is the only system my plugin would apply to.
Cyclone
@Cyclone - why only Windows? Just asking.
Moshe
+4  A: 

For FF/Chrome etc you need NPAPI. Can't imagine doing it in .Net

For IE it's just a COM object. Theoretically you could do it in .Net

If you are not accessing any local resources (special hardware etc) on the browsers computer then you might as well just use Silverlight. Lot of samples of what Silverlight can do

TFD
+1 for being informative
Earlz
A: 

I've been looking into this recently - you clearly have to do a lot of per-platform and per-browser work (I haven't found a magical one size fits all solution).

My application was 3d rendering, so this series was pretty useful (obviously substituting the Irrlicht stuff for your own code/library):

http://copperbit.com/?p=20

There is also a follow up article on FireFox...

n3wtz
A: 

Still "how to develop plugin like flash & Silverlight" is big question? so far not answered.

KausarMehmood