crossProbe setObjectArguments property.


cp.setObjectArguments
cp.setObjectArguments("arg1=value","(opt;NS->a2=val",...)

If you want crossProbe to produce on-the-fly objects within your pages with the buildObject - method, you must first supply it with arguments to build upon. This populating is done with setObjectArguments. Prior to version 0.92 of crossProbe this property was divided into two different functions because of the slight differences between MSIE and Netscape and how plug-in objects are embedded into the HTML-flow. But, on beta-users request the objectbuilding-routine was re-arranged to accept supplying of any related argument thru one single property, named setObjectArguments.

When calling the buildObject -method, crossProbe depending on the browser, will automatically build the appropiate HTML for you, based on the arguments supplied with setObjectArguments. This powerfull yet simple parse-routine takes care of whether to print an "<EMBED>" or an"<OBJECT>" and if arguments are HTML-attributes or not. You can even supply MSIE events applying to the <OBJECT> itself along.

To build more advanced objects you can state arguments specificly for Netscape's <EMBED> -model. Consider;
setObjectArguments("NS->LOOP=false","IE->LOOP=true")
When the buildObject-method is handled this arguement, it'll produce different "LOOP" attributes depending on the client. The MSIE LOOP will become true, and Netscape/Opera will get an LOOP=false, OK!?
Reference Index.