Archive for March, 2008

Web host - JavaScript Programmer’s Reference OBJECT.classid (Property) The URL that

Friday, March 21st, 2008

JavaScript Programmer’s Reference OBJECT.classid (Property) The URL that locates the registered ActiveX control within the local file system when MSIE is used on the Windows platform. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: String primitive JavaScript syntax: IE myOBJECT.classid This is a special URL value used to locate ActiveX objects within the file system of the PC running the client browser. This is likely only available in Windows versions of the MSIE browser because that is the only platform that supports ActiveX objects. It is not supported on the Macintosh version of MSIE because ActiveX objects aren’t available there. This is because they are compiled x86 microcode and therefore cannot run in a non-Intel environment (unless the x86 CPU is being emulated). The ActiveX control needs to have been registered and installed already. It is possible to construct an tag that conveys sufficient information to locate and install a missing ActiveX control but this can be a quite involved process. See also: clsid: URL, URL Property attributes: ReadOnly. OBJECT.code (Property) The name of a Java applet to be used with the tag. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myOBJECT.code This specifies the main code class to be loaded when the object is instantiated. This value is added to the codebase property to form a fully qualified URL. There is conflicting information in the reference sources regarding the read/write ability of this property. Some suggest it is ReadOnlyand others suggest you can assign a value to it. It may be that you can assign a value to it without the JavaScript interpreter complaining but that any value you assign is ignored. 1596

O OBJECT.archive (Property) Certain tags are likely (Yahoo web space)

Thursday, March 20th, 2008

O OBJECT.archive (Property) Certain tags are likely to be omitted from the altHTML property value. blocks contain tags for passing values to the embedded ActiveX component. Clearly you won’t want these appearing in the display if the component fails to load. The tags are considered integral to the and it s smart enough to disregard them as it constructs its alternative HTML block. Browsers that cannot understand and render tags should also ignore the tags too. OBJECT.archive (Property) A space-separated archive list. This enumerates a set of classes that must be pre-loaded before the object can execute. Availability: DOM level 1 JavaScript 1.5 Netscape 6.0 Deprecated Property/method value type: String primitive JavaScript syntax: N myOBJECT.archive This is a new attribute of the DOM HTMLObjectElement but is shown here as this is the existing object type it is to be added to. OBJECT.border (Property) The width of the border around the object when it is rendered into the display. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myOBJECT.border This property can be set from script and although its type is a String primitive, it will expect a numeric value. JavaScript will coerce as necessary during the assignment. 1595

Web design software - JavaScript Programmer’s Reference OBJECT.align (Property) An alignment control

Wednesday, March 19th, 2008

JavaScript Programmer’s Reference OBJECT.align (Property) An alignment control for an tag’s position with respect to its parent object. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myOBJECT.align The alignment of the ActiveX OBJECTobject with respect to its containing parent object is defined in this property. The expected and widely available set of alignment specifiers are available: . absbottom . absmiddle . baseline . bottom . center . left . middle . right . texttop . top OBJECT.altHtml (Property) A block of alternative HTML to be used if the tag fails to load its plugin correctly. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: String primitive JavaScript syntax: IE myOBJECT.altHtml The alternative HTML is used in case the base tag experiences a problem when loading or the browser cannot use ActiveX objects as embeds. Of course if this property is accessible from the OBJECTobject during scripting, the browser must have parsed the tag, although it may still have had problems with the component. This HTML is enclosed between the and tags in the HTML document source. 1594

Web host sites - O OBJECT object (Object/HTML) Event name JavaScript

Wednesday, March 19th, 2008

O OBJECT object (Object/HTML) Event name JavaScript JScript N IE Opera DOM HTML Notes onAfterUpdate 3.0 + 4.0 + - onBeforeUpdate 3.0 + 4.0 + - onBlur 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + Warning onClick 1.5+ 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onDataAvailable 3.0 + 4.0 + - onDataSetChanged 3.0 + 4.0 + - onDataSetComplete 3.0 + 4.0 + - onDblClick 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onDragStart 3.0 + 4.0 + - onError 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + Warning onErrorUpdate 3.0 + 4.0 + - onFilterChange 3.0 + 4.0 + - onFocus 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + Warning onHelp 3.0 + 4.0 + Warning onKeyDown 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onKeyPress 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onKeyUp 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseDown 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseMove 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseOut 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseOver 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseUp 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onReadyStateChange 3.0 + 4.0 + - onRowEnter 3.0 + 4.0 + - onRowExit 3.0 + 4.0 + - onSelectStart 3.0 + 4.0 + - Inheritance chain: Element object, Node object Web-references: http://www.w3.org/pub/WWW/TR/WD-object.htm 1593

JavaScript Programmer’s Reference Warnings: . Be very careful (Web host music)

Tuesday, March 18th, 2008

JavaScript Programmer’s Reference Warnings: . Be very careful not to confuse this object with the generic top level core Object object that is the super-class of all objects in the interpreter. . This is the object that MSIE instantiates to represent an tag. MSIE creates OBJECT objects for that purpose but also supports Object objects. For this reason, it may be the case that interpreters cannot become case insensitive when matching class names. If they did, then it would be impossible to distinguish between Object and OBJECT class names. . Creating an OBJECT class when an Object class already exists must have been a moment of insanity in an otherwise mostly excellent browser implementation project. See also: ActiveXObject object, Document.applets[], Element object, Input.accessKey, Object object Property JavaScript JScript N IE Opera DOM HTML Notes accessKey 1.5 + 3.0 + 6.0 + 4.0 + 1 + Warning align 1.5 + 3.0 + 6.0 + 4.0 + 1 + - altHtml 3.0 + 4.0 + - archive 1.5 + 6.0 + 1 + Deprecated border 1.5 + 3.0 + 6.0 + 4.0 + 1 + - classid 3.0 + 4.0 + - ReadOnly code 1.5 + 3.0 + 6.0 + 4.0 + 1 + - codeBase 1.5 + 3.0 + 6.0 + 4.0 + 1 + - codeType 1.5 + 3.0 + 6.0 + 4.0 + 1 + - data 1.5 + 3.0 + 6.0 + 4.0 + 1 + -ReadOnly dataFld 1.5 + 3.0 + 6.0 + 4.0 + 1 + Warning dataSrc 1.5 + 3.0 + 6.0 + 4.0 + 1 + Warning declare 1.5 + 6.0 + 1 + - form 1.5 + 3.0 + 6.0 + 4.0 + 1 + -ReadOnly height 1.5 + 3.0 + 6.0 + 4.0 + 1 + - hspace 1.5 + 3.0 + 6.0 + 4.0 + 1 + - name 5.5 + 5.5 + - object 3.0 + 4.0 + - ReadOnly readyState 3.0 + 4.0 + - ReadOnly standby 1.5 + 6.0 + 1 + - tabIndex 1.5 + 3.0 + 6.0 + 4.0 + 1 + - type 1.5 + 3.0 + 6.0 + 4.0 + 1 + - useMap 1.5 + 6.0 + 1 + - vspace 1.5 + 3.0 + 6.0 + 4.0 + 1 + - width 1.5 + 3.0 + 6.0 + 4.0 + 1 + - 1592

Free web hosting services - O OBJECT object (Object/HTML) OBJECT object (Object/HTML)

Monday, March 17th, 2008

O OBJECT object (Object/HTML) OBJECT object (Object/HTML) This is an object that encapsulates an ActiveX plugin. Do not confuse it with the Object object that is the super-class of all objects in JavaScript. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myOBJECT = myDocument.all.anElementID IE myOBJECT = myDocument.all.tags(”OBJECT”)[anIndex] IE myOBJECT = myDocument.all[aName] -myOBJECT = myDocument.applets[anIndex] -myOBJECT = myDocument.getElementById(anElementID) -myOBJECT = myDocument.getElementsByName (aName)[anIndex] JavaScript syntax: -myOBJECT = myDocument.getElementsByTagName (”OBJECT”)[anIndex] HTML syntax: anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Object properties: Event handlers: accessKey, align, altHtml, archive, border, classid, code, codeBase, codeType, data, dataFld, dataSrc, declare, form, height, hspace, name, object, readyState, standby, tabIndex, type, useMap, vspace, width onAfterUpdate, onBeforeUpdate, onBlur, onClick, onDataAvailable, onDataSetChanged, onDataSetComplete, onDblClick, onDragStart, onError, onErrorUpdate, onFilterChange, onFocus, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onReadyStateChange, onRowEnter, onRowExit, onSelectStart This is an object representing an HTML tag. The tag is a block-level tag. That means that it forces a line break before and after itself. This object is specific to the MSIE browser when it runs on the Windows operating system. No other browser supports ActiveX as well as MSIE and no other operating system properly or completely supports the ActiveX infrastructure. The events handled, and the properties and the methods of this object will depend on the kind of ActiveX object that is created. The DOM level 1 specification refers to this as an ObjectElement object. 1591

JavaScript Programmer’s Reference Object property delimiter (.) (Delimiter)

Sunday, March 16th, 2008

JavaScript Programmer’s Reference Object property delimiter (.) (Delimiter) A token to delimit object properties from their object. Availability: ECMAScript edition 2 JavaScript 1.0 JScript 1.0 Internet Explorer 3.0 Netscape 2.0 Netscape Enterprise Server version 2.0 Opera browser 3.0 -myObject.aPropertyJavaScript syntax: -myObject.aProperty.aProperty Argument list: aProperty The identifier name of property to be accessed The dot delimits properties and objects. It can find properties of properties of objects too. The associativity is left to right. Refer to the Operator Precedence topic for details of execution order. You can also access the property values as if the object were an array. This: anObject.aProperty is equivalent to: anObject[”aProperty”] The result will be the value of the property when it is an RValue or a reference to the property when it is an LValue. See also: Associativity, Decimal point (.), Operator Precedence, Postfix operator Cross-references: ECMA 262 edition 2 section 8.6 ECMA 262 edition 2 section 11.2 ECMA 262 edition 3 section 8.6 ECMA 262 edition 3 section 11.2.1 Wrox Instant JavaScript page 28 1590

Web hosting colocation - O Object.watch() (Method) As a general rule,

Sunday, March 16th, 2008

O Object.watch() (Method) As a general rule, the valueOf() method for an object simply returns the this property of the object itself. However, the object may be a wrapper for a host object some kind. It may therefore have been created by invoking the Object constructor. In that case, the host object should be returned in an ECMA-compliant implementation. Implementations may choose to return the this property of an object or some other value if they choose. The result of this method will be implementation-and object-dependant. The native core objects are well defined and will return predictable value types. Generally these will be defined by ECMA or W3C standards. It is up to the hosting environment to provide the valueOf() interface to its own suite of objects. See also: Cast operator, Object.prototype, valueOf() Cross-references: ECMA 262 edition 2 section 15.2.2.1 ECMA 262 edition 2 section 15.2.4.3 ECMA 262 edition 3 section 15.2.4.4 Object.watch() (Method) A means of establishing a call back when a property value changes. JavaScript 1.2 Netscape 4.0 Netscape Enterprise Server version 3.0 Availability: JavaScript syntax: N myObject.watch() This is inherited by most object classes in Netscape. Warnings: . Because of the scoping rules, you cannot actually examine the value of the variable that has changed since the event handler is running in a completely different scope chain. Example code: See also: Object.assign(), Object.unwatch(), unwatch(), watch() 1589

JavaScript Programmer’s Reference Object.unwatch() (Method) A method to (Free web host)

Saturday, March 15th, 2008

JavaScript Programmer’s Reference Object.unwatch() (Method) A method to disable a watch that was set up on a property change. Availability: JavaScript 1.2 Netscape 4.0 Netscape Enterprise Server 3.0 JavaScript syntax: N myObject.unwatch() This is inherited by most object classes in Netscape. Warnings: . Because of the scoping rules, you cannot actually examine the value of the variable that has changed since the event handler is running in a completely different scope chain. Example code: See also: Object.assign(), Object.watch() Object.valueOf() (Method) The primitive numeric value of the object. Availability: ECMAScript edition 2 JavaScript 1.1 JScript 3.0 Internet Explorer 4.0 Netscape 3.0 Netscape Enterprise Server 2.0 Opera 3.0 Property/method value type: Depends on the object value JavaScript syntax: -myObject.valueOf() 1588

O Object.toString() (Method) This (Web proxy server) is an alternative

Friday, March 14th, 2008

O Object.toString() (Method) This is an alternative way to deliver a string version of an object’s internal values. In this case, it is formatted as an Object literal and can then be used in an eval() function to assign another object. The exact format of what you see depends on the object being examined. The result of calling this method is string version of the object formatted as an Object literal. Warnings: . Note that this is not available in the MSIE browser but can be useful when constructing an Object inspector for use in Netscape. Object.toString() (Method) Return a string primitive version of an object. Availability: ECMAScript edition 2 JavaScript 1.1 JScript 3.0 Internet Explorer 4.0 Netscape 3.0 Opera browser 3.0 Property/method value type: String primitive JavaScript syntax: -myObject.toString() When the toString() method of an Object.prototype is invoked, the class name of the object is returned as a string. The result of calling this method will be the string: [object “Object”] See also: Cast operator, Object.prototype, toString() Cross-references: ECMA 262 edition 2 section 15.2.4.2 ECMA 262 edition 3 section 15.2.4.2 1587