Re: Advice for embeding an application in Firefox

Kevin DeKorte <[email protected]> Thu, 17 Jul 2008 09:00:16 -0600
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Marquardt wrote:
|
|
| 2008/7/17 Christophe-Marie Duquesne <[email protected]
| <mailto:[email protected]>>:
|
|     I read carefully this answer, I am not sure I have understood
|     everything : by embeding a terminal, I did not mean doing something
|     serverside. What I want to do seemed simple to me (but when I read
|     you it's not anymore :) ) : I want to run a local terminal normally,
|     like when I run it in gnome. The only difference is that I want this
|     terminal to be ran inside the firefox window, whereas normally it
|     would be run in its own window. And that is really the only
difference.
|
|     To make a long description short : I want to replace text fields by
|     instances of local terminals.
|
|     When you say "Plugger is a generic way to embed application output
|     from your local machine into a webpage for data the webpage
|     delivered." I feel this is exactly what I want to do : I want to
|     embed xterm output from my local machine into a webpage for data
|     (the locations of text fields zones) the webpage delivered. Why
|     would I want to use ssh?
|
|
|
| Hi,
|
| ok, i misunderstood you, i thought you were trying to run a terminal
| session through apache over the net. I read a little about plugger, so i
| have to correct myself. It is only aimed at multimedia playpack, i don't
| know if it can be tweaked to your needs. Xembed sounds more promising
| here, though you probably still have to code your own browser plugin for
| it and you'll need a terminal, that talks Xembed and provides the
| neccessary controls. But from what I read so far, this is quite possible.
| http://multimedia.cx/diamondx/ and
| http://labs.trolltech.com/blogs/2005/08/10/playing-around-with-xembed/
| might help you with further info.
|
| regards,
|
| Peter Marquardt

Peter,

Even with Xembed you can't do what you want to do. Your best option
would be to use a remote X term via ssh.

Here is what a plugin could do.

1. You could specify a specific mimetype (application/x-term)
2. put an embed tag on your web page like

	<embed mimetype='application/x-term' host='myhost.com' width=400
height=300>

3. Write a plugin that handles the mimetype
4. Have the plugin read the host variable and then open an ssh
connection to myhost.com
5. The plugin would need to grab the window that is opened and embed it
via Xembed into the browser window, or just leave it floating on your
desktop.

I think the mozilla sample plugin is much easier to follow in this case.

But really a shell script would be easier to maintain and easier to deploy.

Kevin



- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkh/XoAACgkQ6w2kMH0L1dG53QCfZl+BSLS5ekxeTGb09fb1J5//
TW8An3MNFm+EOoCPXeNMolXdosJJk/Tx
=W5MC
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/