crossProbe errorcodes.

To make it easier implementing crossProbe into your webpage environment, a set of errorcodes was introduced as of version 0.922. They are there to help you find your way around some of the most common mistakes when setting up detection / build / redirection systems with crossProbe.



Errorcode 1.
applies to: probeExecute( argument )

Missing argument. The probeExecute method requires either a string matchable / corresponding to Netscape / Opera's navigator.plugins[ argument ].name or .description
or an integer pointing to a direct entry in the crossProbe AXIDs library.


Errorcode 2.
applies to: probeExecute( argument )
(MSIE, Neoplanet, AOL etc. only)

Argument does not match any AXIDs entry. The supplied string does not resolve to any supported ActiveX - module.


Errorcode 3.
applies to: setObjectArguments( argument )

Arguments missing. Atleast one argument is certainly needed to build an HTMLobject.


Errorcode 4.
applies to: buildObject

crossProbe cannot determine the probeExecute - result stored in probeSuccess when building the HTML object / alternatíve HTML. This error will only occur when running several instances of the crossProbe-object . The buildObject method needs to know the result of the probeExecute bound the same instance to determine what / if to build.

Another way of putting it is;
foo.setObjectArguments(...) is bound to foo.probeExecute(...) is bound to foo.buildObject( ), bar.buildObject( ) is not.


Errorcode 5.
applies to: setTarget = "target as string";

Target is not a valid DOM object or does not exist. Check your spelling and make sure you follow the DOM hierarchy. Remember that when targeting a layer for both MSIE and Netscape you will have to have separate targets. A "layer" or "<DIV>" in MSIE is exposed either to the window-object or thru the document.all collection while the Netscape layer object from the window.document. With this in mind, when targeting a "layer" crossbrowser, you have put it this way;
cp.setTarget = cp.isIE ? "window.myLayer" :"document.myLayer"

Reference Index.