Archive for September, 2007

B Bar.visibility (Pitfall) See also: Property JavaScript (Web site optimization)

Tuesday, September 11th, 2007

B Bar.visibility (Pitfall) See also: Property JavaScript JScript N IE Opera Notes visible 1.2 + 4.0 + - Bar.visible, Window.locationbar, Window.menubar,Window.personalbar, Window.scrollbars, Window.statusbar, Window.toolbar Bar.visibility (Pitfall) An erroneous name for the visible property of a Bar object. Warnings: . Some reference works refer to the visibility property of the Bar object, possibly due to early prototype versions of the Netscape browser or in an attempt to document forthcoming features of the browser. In between publishing and release of the browser, the property changed its name to the visible property. . You may even then have some difficulty in getting it to work on some platforms but you do need to make sure you are trying to set the correct property value when changing the visibility of Bar objects. See also: Bar.visible Bar.visible (Property) A flag indicating whether the bar that this object represents is visible. Availability: JavaScript 1.2 Netscape Navigator version 4.0 Property/method value type: Boolean primitive N myBar.visible JavaScript syntax: N myBar.visible = aBoolean Argument list: aBoolean A switch value to control the visibility of a window control item Setting this property to true makes the bar visible. Setting false hides the bar. You must have been granted the UniversalBrowserWrite privilege to be able to set this property value. See also: Bar object,Bar.visibility

JavaScript Programmer’s Reference (Web site counters) This allows us to include

Monday, September 10th, 2007

JavaScript Programmer’s Reference This allows us to include fragments of JavaScript into an HTML page and expect them to be parsed server-side. This is somewhat analogous to JavaScript entities but they operate at the client-side. The server-side example wraps its result inside quote symbols so that the HTML tag attribute syntax is preserved intact. Example code:

See also: JavaScript entity, Netscape Enterprise Server Bar object (Object/Navigator) An object used to hold properties for toolbars, location bars etc. JavaScript 1.2 Availability: Netscape Version 4.0 N myBar = locationbar N myBar = menubar N myBar = myWindow.locationbar N myBar = myWindow.menubar N myBar = myWindow.personalbar N myBar = myWindow.scrollbars N myBar = myWindow.statusbar N myBar = myWindow.toolbar N myBar = personalbar N myBar = scrollbars N myBar = statusbar JavaScript syntax: N myBar = toolbar Object properties: visible This object is used to represent various items of window furniture (otherwise called chrome or adornments) in Netscape Navigator. It isn’t supported by MSIE although the control facilities it offers are available when a new window is created with the window.open() method. It only has one usable property. That is the visibleproperty, which can be set to a Boolean value. Some early documentation referred to this as the visibility property but that is the wrong property name.

B Background object (Object/browser) Background object (Object/browser) (Cheapest web hosting)

Sunday, September 9th, 2007

B Background object (Object/browser) Background object (Object/browser) A background image object associated with a Netscape Navigator layer. Availability: JavaScript 1.2 Netscape Navigator version 4.0 JavaScript syntax: N myBackground = myLayer.background Object properties: src This object is used with a layer in Netscape Navigator and its properties correspond with properties of the Image object in Netscape Navigator. See also: Background.src,BODY object,Image object,Layer.background Property JavaScript JScript N IE Opera HTML Notes src 1.2 + 4.0 + - Background.src (Property) The source location of an image to be associated with a layer and used as its background image. Availability: JavaScript 1.2 Netscape 4.0 Property/method value type: String primitive JavaScript syntax: N myBackground.src This corresponds to the src property of a Netscape Navigator Image object. It defines the URL of an image to load into the background of a layer, as these are scriptable in Netscape Navigator whereas the background image of a document object is not. Background object, BODY.background, BODY.bgProperties, JSSTag. backgroundImage,style.background See also: Back-quote (`) (External code call) Call some external code during server-side execution. The back-quote substitutions operate much like you may have seen them work in command-line shells and Perl interpreters. The text enclosed inside the back-quotes is parsed out from the HTML and is then executed as JavaScript. ASP provides a means of substituting the output of JavaScript code into a block enclosed in <% ... %>markers which does a similar thing.

JavaScript Programmer’s Reference Event name (Msn web hosting) JavaScript JScript N

Saturday, September 8th, 2007

JavaScript Programmer’s Reference Event name JavaScript JScript N IE Opera DOM HTML Notes onClick -3.0 + -4.0 + -4.0 + Warning onDblClick -3.0 + -4.0 + -4.0 + Warning onDragStart 3.0 + 4.0 + - onFilterChange 3.0 + 4.0 + - onHelp 3.0 + 4.0 + Warning onKeyDown -3.0 + -4.0 + -4.0 + Warning onKeyPress -3.0 + -4.0 + -4.0 + Warning onKeyUp -3.0 + -4.0 + -4.0 + Warning onMouseDown -3.0 + -4.0 + -4.0 + Warning onMouseMove -3.0 + -4.0 + 4.0 + Warning onMouseOut -3.0 + -4.0 + -4.0 + Warning onMouseOver -3.0 + -4.0 + -4.0 + Warning onMouseUp -3.0 + -4.0 + -4.0 + Warning onSelectStart 3.0 + 4.0 + - Inheritance chain: Element object, Node object See also: Element object back() (Method) Perform the same action as pressing the [BACK] button in the toolbar. Availability: JavaScript 1.2 JScript 3.0 Internet Explorer 4.0 Netscape 4.0 Property/method value type: undefined -back() JavaScript syntax: -myWindow.back() See also: History.back(),Window.forward(), Window.back()

B object (Object/HTML) An (Web site template) object that represents the

Saturday, September 8th, 2007

B object (Object/HTML) An object that represents the font style controlled by the HTML tag. Availability: JScript 3.0 Internet Explorer 4.0 Deprecated Usage: Yes Inherits from: Element object IE myB = myDocument.all.anElementID IE myB = myDocument.all.tags(”B”)[anIndex] IE myB = myDocument.all[aName] -myB = myDocument.getElementById(anElementID) -myB = myDocument.getElementsByName(aName)[anIndex] JavaScript syntax: -myB = myDocument.getElementsByTagName(”B”)[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 Event handlers: onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart

JavaScript Programmer’s Reference Cross-references: ECMA 262 edition 2 (Web hosting reseller)

Friday, September 7th, 2007

JavaScript Programmer’s Reference Cross-references: ECMA 262 edition 2 section 7.8 ECMA 262 edition 3 section 7.9 O’Reilly JavaScript Definitive Guide page 28 Wrox Instant JavaScript page 17 Automation object (Object/JScript) An object created in the JScript environment for connecting to other applications within the host environment. Availability: JScript 3.0 Internet Explorer 4.0 IE myAutomation = GetObject(aLocation) IE myAutomation = GetObject(aLocation, anObjectType) IE myAutomation = GetObject(aLocation!aSubObject) JavaScript syntax: IE myAutomation = GetObject (aLocation!aSubObject, anObjectType) anObjectType What sort of application and object class type to be created aLocation A path to the file for the object to be instantiated Argument list: aSubObject A fragment identifier for a sub-object within the file See also: ActiveXObject object, GetObject()

Cool web site - A Automatic semi-colon insertion (Definition) There are

Thursday, September 6th, 2007

A Automatic semi-colon insertion (Definition) There are cases where the the interpreter will automatically insert semi-colons as needed. You won’t see them in the script source, but the interpreter knows they should be there. You should not rely on the interpreter doing your work for you. For example, semi-colons are never added inside for statement headers. Here are some instances of how the browser deals with automatic semi-colon insertion: . Semi-colons are automatically placed before curly braces (}) that close code blocks if necessary. . A semi-colon is added at the end of a script source text if necessary to parse the source as a complete program. . Semi-colons are added to prevent accidental postfix increment or decrement operations. Postfix ++ or — operators should be on the same line as the operand to which they apply. Actually it is good practice for there to be no whitespace between them. . Semi-colons are added after the return statement when it is the last statement on a line. An expression to be evaluated as part of a return statement should be placed adjacent to it. It is good practice to form the return as if it were a function, enclosing the expression in parentheses: return(expression); . This is unaffected by automatic semi-colon insertion even though it is syntactically incorrect: for (a; b) . This is transformed: returna + b And becomes: return;a + b; However, a + b is not returned as a result because the line terminator separates them from the return statement. . People take a great many liberties with the formatting of if else constructions. This won’t get fixed: if(a > b)else c = d . This won’t get fixed either: a = b + c(d + e).print() It doesn’t get fixed because the parentheses look like a function call. Warnings: . Careful programmers always put semi-colons in. If you come from a C or Java background, this may be instinctive, but otherwise you should develop the habit so that it becomes instinctive. See also: Free-format language, Lexical convention, Line terminator, Semi-colon (;)

JavaScript Programmer’s Reference So far, not much of

Thursday, September 6th, 2007

JavaScript Programmer’s Reference So far, not much of this capability has found its way into the currently available web browsers. There are many issues that have not yet been addressed with this aspect of style sheets. For example, controlling multi-lingual spoken text and dates may be somewhat problematic. Certainly the locale that the browser is operating in may be used to select a national language variant for the spoken word. Warnings: . This facility is not yet supported by any of the browsers. AuthentiCode (Security related) This is a security model that applies digital signatures to ActiveX objects in MSIE. Warnings: . This technique does not currently support signed scripts in MSIE and only applies to ActiveX objects. See also: Security policy, Signed scripts Automatic semi-colon insertion (Definition) The action of adding semi-colons where they have been omitted. Availability: ECMAScript edition 2 A semi-colon explicitly placed in the source text must terminate certain statements. Your JavaScript interpreter may help by adding some automatically, but this may not work as you expect. As they say, “Your mileage may vary”. Semi-colons are used to explicitly terminate certain keywords so that the parser can determine exactly where the fragment of code begins and ends. The semi-colon removes the ambiguity about how a piece of code is intended to execute. Line terminators greatly affect the automatic semi-colon insertion process. The following statements must have trailing semi-colons: . empty statement . variable statement . expression statement . continue statement . break statement . return statement . throw statement

A ATVEF (Standard) The number of attributes (Cpanel web hosting)

Wednesday, September 5th, 2007

A ATVEF (Standard) The number of attributes supported by the HTML tag that owns this Attributes object. This is the principle property of an Attributesobject. Most others depend on the object that is represented. See also: Attributes object, Collection.length Property attributes: ReadOnly. ATVEF (Standard) Advanced Television Enhancement Forum. This extract from the ATVEF standard describes in outline the aims and scope of this web and TV convergence project. You should consult the specification for a complete description of how this is to be accomplished. There are several manufacturers already building and deploying these systems on a variety of broadcast mediums. The Advanced Television Enhancement Forum (ATVEF) is a group of people from the broadcast TV and Internet industries who are working to specify a single public standard for delivering interactive television experiences. The intention is that these should be authored once using a variety of tools and deployed to a range of television, set-top, and PC-based receivers. The Enhanced Content Specification defines the fundamental requirements that are necessary to enable creation of HTML-enhanced television content. This goes beyond normal Internet-based delivery to describe how it can be reliably broadcast across any network to any compliant receiver. Because the broadcast requires that there is no bidirectional link, some changes to the delivery protocols are outlined. The ATVEF specification for enhanced television programming uses existing Internet technologies. It describes how to deliver enhanced TV programming over both analog and digital video systems using terrestrial, cable, satellite, and Internet networks. The specification can be used in both one- way broadcast and two-way video systems, and is designed to be compatible with all international standards for both analog and digital video systems. See also: Interpret, Liberate TV Navigator, Microsoft TV, URL, WebTV Web-references: http://atvef.com/library/spec1_1a.html Aural style sheets (Definition) The CSS standard describes style properties for spoken text. The aural style properties allow the control of spoken voice and other sound effects to be assigned to element objects so that as they are displayed, their content may be spoken or read out to the user. This then makes the World Wide Web more accessible to sight-impaired users.

Web proxy server - JavaScript Programmer’s Reference displayTableLine(”Number of attributes:”, myAttributesObject.length, “”);

Tuesday, September 4th, 2007

JavaScript Programmer’s Reference displayTableLine(”Number of attributes:”, myAttributesObject.length, “”); for(myEnumerator=0; myEnumerator“); document.write(”“); document.write(aHeading); document.write(”“); document.write(”“); document.write(aFlag); document.write(”“); document.write(”“); document.write(aValue); document.write(”“); document.write(”“); } See also: Property JavaScript JScript N IE Opera DOM Notes length 1.5 + 5.0 + 6.0 + 5.0 + 1 + ReadOnly Attribute object, Attributes.length, Collection object, Element object, Element.attributes[], Element.removeAttribute(), HasProperty(), HTML object, HTML tag attribute Attributes.length (Property) The number of tag attributes supported in this Attributes array. Availability: DOM level 1 JavaScript 1.5 JScript 5.0 Internet Explorer 5.0 Netscape 6.0 Property/method value type: Number primitive JavaScript syntax: -myAttributes.length