473,808 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2954
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 = '/ftpConnectionCo ming.cgi?t=' + rand;
window.open('ft p://yourserver/' + rand);
</script>

Then on your server, you'd need some smarts to determine that the same
random number was reported to ftpConnectionCo ming.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*****@agrico reunited.com>
comp.lang.javas cript 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***@access4l ess.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.infosystem s.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***@access4l ess.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
6882
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
4020
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
3187
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
2067
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 better than just failing to install. I am using VS.NET Deployment project. Thanks in advance.
6
5244
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
27683
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 (2.6 kernel) if that makes any difference. Any info would be greatly appreciated. Thanks Glen
13
2438
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 how many bytes are actually sent. I can detect abort of the script using a shutdown handler. In the shutdown handler, I tried ob_get_length, but it returns false. I tried to read the server's log file, but it is does not contain the...
4
7832
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 support for the protocol, and one without this client. So I need to write a javascript-function to check if the callto: or phoneto:
1
3494
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 perfectly from a normal IE window. HOWEVER, when accessed from a browser embedded in another application, it doesn't seem to work at all. I can turn on a fair amount of logging and when I access the URL from a normal IE window I see all the logs I would...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10631
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9196
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.