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