By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,947 Members | 1,594 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,947 IT Pros & Developers. It's quick & easy.

detect if protocol is registered, possible?

P: n/a
Is it possible to detect whether a protocol client-side on any given
user's machine?

Thanks,
Mike
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
mscir wrote:
Is it possible to detect whether a protocol client-side on any given
user's machine?

Thanks,
Mike


Pardon?

By "protocol" what do you mean? Do you mean is it possible to determine
if the user has IPX/SPX or NetBEUI installed and configured properly
using client-side JavaScript in a Web browser? No.

Do you mean you want to determine whether the user's browser supports a
particular protocol in URI's... I suppose that's possible... something
like:

<script type="text/javascript">
var cmd = new Image();
var rand = Math.floor((new Date()).getTime() * Math.random());
cmd.src = '/ftpConnectionComing.cgi?t=' + rand;
window.open('ftp://yourserver/' + rand);
</script>

Then on your server, you'd need some smarts to determine that the same
random number was reported to ftpConnectionComing.cgi and an attempt was
made to connect to your FTP server with a directory of the same name as
that random number (by checking the logs perhaps).

There may be other ways of doing this, since I have no idea what your
question was even asking, I didn't spend a lot of time trying to come up
with a solution.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2

P: n/a
Grant Wagner wrote:
mscir wrote:
Is it possible to detect whether a protocol client-side on any given
user's machine?

By "protocol" what do you mean?


Sorry I wasn't clearer. I want to check to see if "mailto" will work or
not, before presenting the user with choices, by the site owner's request.

Mike
Jul 23 '05 #3

P: n/a
On Tue, 28 Sep 2004 13:31:31 -0700, mscir <ms***@access4less.net> wrote:

[snip]
Sorry I wasn't clearer. I want to check to see if "mailto" will work or
not, before presenting the user with choices, by the site owner's
request.


No, it's not possible. You can't determine whether a machine will have a
mail client from script, or whether that client is known by the browser
(the crucial bit).

Consider using a mail form in place of, or in addition to, an actual
e-mail address. If you or your client is interested, someone's started a
thread on alt.html that asks for comments on the merits of both.

Subject: Form Mail vs Mailto Links
Date: Mon, 27 Sep 2004 08:13:01 -0400
Author: DL**@webtv.net (Davmagic .Com)
Message ID: <12****************@storefull-3157.bay.webtv.net>

There's bound to be plenty of these debates in the archives of alt.html
and comp.infosystems.www.authoring.html if you'd rather not wait and see
what opinions this one will yield.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #4

P: n/a
Michael Winter wrote:
mscir <ms***@access4less.net> wrote:
I want to check to see if "mailto" will work or not
<snip>
No, it's not possible. You can't determine whether a machine will have
a mail client from script, or whether that client is known by the
browser (the crucial bit).


OK, that's what I wanted to know. I'll recommend that he use form mail,
or at the very least provide that as a recommended option.

Thanks,
Mike
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.