473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

detect if protocol is registered, possible?

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

Thanks,
Mike
Jul 23 '05 #1
4 2918
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Thierry | last post by:
Hi. I am working on a managed dll. What code can I use in C# to detect if my dll is running under a service (like IIS) or called from a 'normal' program. Thanks Thierry
6
by: Stephane Belzile | last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS unit in case of power failure? Thanks
1
by: David | last post by:
Hi, I want to detect when a hotkey are pressed. I've installed keyboard global hooks, but in dont know how to detect HotKeys. Some Help ? :) Thanks
8
by: Igor Kuklin | last post by:
I know how to detect .NET Framework, and I know how to re-register ASP.NET. But is there any way to detect that ASP.NET is not registered with IIS? I want my installation program to treat this case...
6
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
3
by: Glen | last post by:
Is it possible to to detect a Tkinter top-level window being closed with the close icon/button (top right), for example to call a function before the window actually closes? Python 2.4 / Linux...
13
by: Shailesh Humbad | last post by:
Here is an advanced PHP question. Can anyone think of a way to detect the number of bytes written to output when a script is aborted? I am sending a large file to the client, and I want to record...
4
by: Alexander | last post by:
Hi, I am developing a web-application which will start telephone-calls using a special protocol (callto: or phone:) There will be two groups of users, one with a phone-client installed and...
1
by: pvogel | last post by:
Hi Folks, I've got an asynchronous pluggable protocol (APP) handler implemented (based on the excellent work here: http://www.codeproject.com/aspnet/AspxProtocol.asp) that works absolutely...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.