JavaScript Programmer’s Reference IE myCAPTION = myDocument.all.anElementID IE myCAPTION = myDocument.all.tags(”CAPTION”)[anIndex] IE myCAPTION = myDocument.all[aName] -myCAPTION = myDocument.getElementById(anElementID) -myCAPTION = myDocument.getElementsByName(aName)[anIndex] JavaScript syntax: -myCAPTION = myDocument.getElementsByTagName(”CAPTION”) [anIndex] HTML syntax:
… anIndex A valid reference to an item in the collection aName The nameattribute of an element Argument list: anElementID The ID attribute of an element Object properties: align, vAlign, align, vAlign Event handlers: onAfterUpdate, onBeforeUpdate, onBlur, onChange, onClick, onDblClick, onDragStart, onErrorUpdate, onFilterChange, onFocus, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onScroll, onSelect, onSelectStart The caption forms an integral part of the table to which it belongs. It needs to be defined inside the
tags. The DOM level 1 standard describes these objects as TableCaptionElement objects. See also: Element object, style.captionSide, TABLE object, TABLE.caption, TABLE.createCaption(), TABLE.deleteCaption() Property JavaScript JScript N IE Opera DOM HTML Notes align 1.5 + 3.0 + 6.0 + 4.0 + 1 + Warning, Deprecated vAlign 3.0 + 4.0 + Warning, Deprecated align 1.5 + 3.0 + 6.0 + 4.0 + 1 + Warning, Deprecated vAlign 3.0 + 4.0 + Warning, Deprecated 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 onChange 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + - onClick 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onDblClick 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning Table continued on following page
Posted in Coldfusion | No Comments »
Wednesday, November 21st, 2007
C CanPut() (Function/internal) CanPut() (Function/internal) Internal private function. Availability: ECMAScript edition 2 This internal function returns a Boolean value to indicate whether the named property can be changed in the containing object. If the property is found, the value of its ReadOnly attribute is checked. If it has a ReadOnly attribute, the result of CanPut() must be false. Otherwise, having found the property, the true result will be returned. If the property does not exist in the receiving object, the prototype chain is walked until the property or a null prototype is encountered. At each inheritance level, the CanPut() function is used to determine the existence of the property. If a null prototype is encountered, the result will be true, since the property can then be created in the original receiving object. If the prototype is a host object that does not implement the CanPut() function, then false is returned as a result. Because the prototype chain is walked extensively by the CanPut() function, if the prototype chain is not finite and terminated with a null at some stage, a recursive loop is built and the function never returns. Internal Method See also: Property attributes: Internal. Cross-references: ECMA 262 edition 2 section 8.6.2.3 ECMA 262 edition 3 section 8.6.2.3 CAPTION object (Object/HTML) An object that represents the
HTML tag, which is used inside a . Availability: Inherits from: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Element object
Posted in Coldfusion | No Comments »
Wednesday, November 21st, 2007
JavaScript Programmer’s Reference Call object (Object/internal) The currently executing function is a call object. Availability: ECMAScript edition 2 See also: Arguments object, Function scope, Function.arguments[], JSObject.call(), Call Cross-references: ECMA 262 edition 2 section 8.6.2 ECMA 262 edition 3 section 8.6.2 Call-back event (Definition) A mechanism for creating frameworks that call user-supplied functions. Event, JSObject.call(), Plugin events, Event handler See also: Calling event handlers (Definition) Event handlers can be called in many different ways. If you implement an event handler as a function, then you can call it from other functions as needed. For example, we can build a form validator and associate it with the onSubmit event for the form. We might want to invoke that validator when something else changes on the page or as a result of the user clicking on various buttons. Because the submission is still handled by the browser, invoking the form validation event handler won’t submit the form unless it is called as a result an onSubmitevent being triggered. The form only gets submitted to the server if the form validator returns the correct Boolean flag value when it is invoked in response to an onSubmit trigger event. There is another way to submit the form’s contents. That is by calling the submit() method belonging to a Form object. That doesn’t trigger an onSubmit event if it is called within the context of an onSubmit event handler. You could use this technique if you wanted the form contents to be submitted by some action other than clicking on a submit button. Event handler, Event handler properties, Function call See also:
Posted in Coldfusion | No Comments »
Tuesday, November 20th, 2007
C Call by value (Definition) document.write(”
“); document.write(myObject.myVar); function callMe(aValue) { document.write(aValue.myVar); document.write(”
“); aValue.myVar = 100; document.write(aValue.myVar); }