Indeed not everyone has "MSWinsock.Winsock.1". Thus:
quote:
Originally posted by -dt-
In my webserver script i was working on i used
code:
new ActiveXObject( "MSWinsock.Winsock.1" );
Never use the "blahblah.1", "blahblah.2", "blahblah.3", etc objects. Not everybody has them.
The ".x" indicates that there are multiple versions registered on your computer (which may on its turn indicate duplicated, even corrupted objects).
When you omit the ".x", the default one is loaded instead (as that is its proper name; thus without that ".x"). And if present, the system will search for the latest (or not corrupted) version on its own.
Note1: This goes for all ActiveX objects, not just for "MSWinsock.Winsock".
Note2: When you use non standard ActiveX objects, or objects which depend on other possibly not installed stuff, always check if they exist on the hosts computer. Don't automatically assume that everybody has them.