Archive for September, 2007

Web hosting plans - L LiveWire (Product) LiveWire (Product) Netscape Communications’

Sunday, September 30th, 2007

L LiveWire (Product) LiveWire (Product) Netscape Communications’ server-side JavaScript compiler. This was the original name for JavaScript when used in the server. Now it is simply called Server- Side JavaScript. Sometimes SSJS for short. The LiveWire JavaScript interpreter is used in Netscape Enterprise Server. In this environment you can also compile the JavaScript code which further blurs the distinction between Java and JavaScript. Warnings: . Be careful not to confuse the following: . LiveWire . LiveScript . LiveConnect See also: LiveScript, Server-side JavaScript Local time (Definition) The locale specific time value. Availability: ECMAScript edition 2 Local time is the calendar time for the current locale. Local time and UTC time differ by an amount derived by adding the Local Time Zone Adjustment and the Daylight Savings Time Adjustment together. Adding these to the UTC time gives the local time. Conversion of UTC time (ut)to local time is defined by: LocalTime(t) = ut + LocalTZA + DaylightSavingTA(ut) Conversion from local time (lt)to UTC is defined by: UTC(lt) = lt LocalTZA DaylightSavingTA(lt LocalTZA) The following expression may not always test true: t = UTC(LocalTime(t)) 1353

JavaScript Programmer’s Reference Warnings: (Crystaltech web hosting) . Be careful not

Sunday, September 30th, 2007

JavaScript Programmer’s Reference Warnings: . Be careful not to confuse the following: . LiveWire . LiveScript . LiveConnect . In Netscape version 3, a bug in the conversion routines yielded all Java primitives as JavaScript objects instead of JavaScript primitives. This causes a few problems because Number and Boolean objects in JavaScript behave slightly differently to the primitive representations, mostly to do with operator overloading and precedence. Objects will prefer to concatenate as strings rather than add as numbers for example. The valueOf() method will provide a way to work around this. See also: ActiveX, Glue code, Java calling JavaScript, Java method calls, Java method data conversion, Java to JavaScript values, JavaScript to Java values, LiveScript, Plugin events, Plugin.isActive() LiveScript (Product) This was the original name for JavaScript when it was first introduced by Netscape Communications. Maybe LiveScript wouldn’t have caught on and become so popular, but now people routinely confuse it with Java. Even more so now that interpreters for JavaScript are available written in Java and some server-side application tools allow you to write Java code but run it in a script interpreter. That would be Java script not JavaScript. Warnings: . Be careful not to confuse the following: . LiveScript . LiveWire . LiveConnect . LiveWire is the former name for Server-Side Javascript. . LiveConnect is a mechanism for allowing JavaScript to talk to Java in a Netscape browser. See also: JavaScript language, JavaScript version, LiveConnect, LiveWire livescript: URL (Request method) This is a pseudonym for the javascript: URL. See also: URL, javascript:URL 1352

L LiveConnect (Product) LiveConnect (Web site traffic) (Product) A Netscape

Saturday, September 29th, 2007

L LiveConnect (Product) LiveConnect (Product) A Netscape Communications technology that provides a means of communicating between plugins and Java applets. In Netscape, communication between scripts and Java applets takes place via the LiveConnect interface. LiveConnect was originally designed for just this purpose. LiveConnect is only implemented in Netscape. However, similar but not identical functionality is available in MSIE via the ActiveX interface. LiveConnect is most effective if you can also understand the internals of Java applets and can program in Java yourself. You can use LiveConnect to gain read and write access to the public fields of an applet and you can also invoke public methods. You can also interact with standard Java system classes that are built into the Netscape browser. If a plugin is Java-enabled, then in Netscape you can interact with that plugin in the same way. From the opposite direction, applets and Java-enabled plugins can invoke JavaScript functions and can read and write JavaScript object properties. The Real Video plugin uses this to great effect as do many other media plugins. LiveConnect is constructed around some built-in objects that encapsulate various Java classes and objects. These are: . JavaObject An encapsulation of an instance of a Java object that belongs to a JavaClass . JavaClass An encapsulation of a Java class for access to static properties and methods . JavaPackage A collection of JavaClassand JavaPackage objects in a tree-like hierarchy With these encapsulations, you can operate on Java objects as if they were JavaScript objects. That is necessary because although you can generally convert between primitive types, the object types are too dissimilar to convert properly. There are some interesting opportunities here for extending the capabilities of your scripts with the facilities offered by Java. However, the downside is that you need to have a VM running. Netscape supports its own internal VM at least up to version 4, but the trend is for browsers to use the OS hosted VM and to not provide any embedded Java execution context. This may provide additional benefits such as sharing Java classes amongst several applications and shortening the start-up time since the VM could be expected to be running already. LiveConnect becomes particularly useful when accessing the java.lang.System class from scripts running in Netscape. In MSIE, you could create a special applet that then gained access to the system class for you. Using this capability to any useful extent starts to impinge on the security model and requires that trusted scripts are used. This is usually enough to deter most people from exploring it more deeply. However, if you can gain that trust, by using signed scripts, you may then be able to access the Java IO facilities and read/write files. Working the other way, LiveConnect provides a way for Java code to execute a string as JavaScript. This is very like an eval() call from the native JavaScript environment. 1351

Web design online - JavaScript Programmer’s Reference These are objects that can

Friday, September 28th, 2007

JavaScript Programmer’s Reference These are objects that can also be manufactured from literals: . Array . Date . Regular expression . Object . Void String literals also include escaped character literals which may also be used in regular expressions. Host environments additionally define others for special purposes depending on the implementation. See also: Boolean literal, Character constant, Constant, Lexical element, Null literal, Numeric literal, Primary expression, String literal, Token Cross-references: ECMA 262 edition 2 section 7.7 ECMA 262 edition 2 section 11.1.3 ECMA 262 edition 3 section 7.8 ECMA 262 edition 3 section 11.1.3 O’Reilly JavaScript Definitive Guide page 30 Little endian (Definition) A bit ordering standard for some CPU models. Increasing bit value 1 2 4 8 16 32 64 128 See also: byte 1350

L (Apache web server tutorial) Literal (Definition) The appearance will be

Friday, September 28th, 2007

L Literal (Definition) The appearance will be similar to that rendered by a ,

 or  tag.  Use of this tag is highly deprecated but it still persists in some legacy content.   See also:  Element object, KBD object, PRE object   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   Literal (Definition)   Constant values used to initialize or assign a value.   Literals are constant values used in assignments or as arguments to functions or expressions. A  literal is considered to be a primary expression when it is being evaluated.   There are several kinds of literals. They are all based on the primitive types. The ECMA standard  defines four basic data types, which should be sufficient for most purposes; however, a hosted  interpreter may provide other more esoteric primitive values. Here are the four core standard types:   . Null  . Boolean  . Numeric  . String  1349

JavaScript Programmer’s Reference Although the List type does

Thursday, September 27th, 2007

JavaScript Programmer’s Reference Although the List type does not really exist as a data type accessible from a script, the internal behavior of the interpreter appears as if it did. Especially when looking at the way argument lists are processed in new operator expressions. See also: new, Type Cross-references: ECMA 262 edition 2 section 11.2.4 ECMA 262 edition 2 section 8.8 ECMA 262 edition 3 section 8.8 ECMA 262 edition 3 section 11.2.4 LISTING object (Object/HTML) An object that represents the

tag. Availability: JScript 3.0 Internet Explorer 4.0 Deprecated Inherits from: Element object IE myLISTING = myDocument.all.anElementID IE myLISTING = myDocument.all.tags(”LISTING”)[anIndex] IE myLISTING = myDocument.all[aName] -myLISTING = myDocument.getElementById(anElementID) -myLISTING = myDocument.getElementsByName(aName)[anIndex] JavaScript syntax: -myLISTING = myDocument.getElementsByTagName (”LISTING”)[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 Event handlers: onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart The LISTING object is instantiated when the browser encounters a tag in the HTML for a document. This tag is used to enclose a section of text that should be presented as if it were a computer code listing. 1348

L (Web hosting) LinkArray.length (Property) LinkArray.length (Property) The number

Wednesday, September 26th, 2007

L LinkArray.length (Property) LinkArray.length (Property) The number of HREF links in the current document. Availability: JavaScript 1.0 JScript 3.0 Internet Explorer 4.0 Netscape 2.0 Property/method value type: Number primitive JavaScript syntax: -myDocument.links.length The length of the links array, which indicates the number of and tags that contain HREF attributes in the document. See also: Collection.length, Document.links[], Url.name Property attributes: ReadOnly. LinkStyle object (Object/DOM) Added at DOM level 2 to support linked stylesheets. Availability: DOM level 2 JavaScript 1.5 Netscape 6.0 JavaScript syntax: N myLinkStyle = new LinkStyle() DOM level 2 specifies that this object should support the following property: . sheet List type (Definition) An internal type used by the interpreter. Availability: ECMAScript edition 2 This is an internal type used by the interpreter for processing expression evaluation results. It cannot be stored as an object property. 1347

Florida web design - JavaScript Programmer’s Reference The MIME type of the

Tuesday, September 25th, 2007

JavaScript Programmer’s Reference The MIME type of the document associated with the LINK is accessible through the value of this property. Refer to the MIME type topic for details of the available MIME types you will likely see in this property. See also: Anchor.type, MIME types, Url.type LinkArray object (Object/browser) A collection of link object, belonging to a document. Availability: JavaScript 1.0 JScript 3.0 Internet Explorer 4.0 Netscape 2.0 JavaScript syntax: -myLinkArray = myDocument.links Object properties: length This is a collection of Urlobjects. In Netscape, you can inspect the constructor to establish the class name which is masked by the toString() method of the Url object. In MSIE, you cannot get at the constructor so we have to assume that the object is a Url object. Urlobjects are created when an or tag refers to a document. Anchors that are simply named locations within a document but which don’t have an HREF get added to the anchors array but not to the links array. Netscape prior to version 6.0 calls this a LinkArray(as opposed to a LinksArray which might be more appropriate). In MSIE it is just a Collection and in Netscape version 6.0 it has become an HTMLCollection because that is what DOM specifies it should be. Warnings: . Be careful not confuse the elements of this array with LINK objects. These are used in MSIE to support styling of Url objects on the screen. Other documentation may refer to Link objects but there is no evidence to support the existence of an object of that class. After inspection there appear to be Url objects in Netscape, LINK objects in MSIE and an object in MSIE that corresponds to the Netscape Url class but which provides no means of examining its constructor. See also: Area object, Collection object, Document.anchors[], Document.links[], HyperLink object, LINK object, Url object Property JavaScript JScript N IE Opera HTML Notes length 1.0 + 3.0 + 2.0 + 4.0 + - ReadOnly. 1346

Web design rates - L LINK.rel (Property) This property reflects the

Tuesday, September 18th, 2007

L LINK.rel (Property) This property reflects the downloading state of an object associated with a tag. Sometimes, you can design scripts to execute while the document is downloading; inline scripts for example. At that time, you may even be able to trigger interval-timed, deferred executions, as well. If it is important that the document has completed loading before your script attempts to execute, you can check this property for one of the following values: State Value uninitialized The object is first instantiated but has not begun loading. loading The object has commenced loading. loaded The object has completed loading. interactive The object is loaded but not yet closed but is ready to handle interaction. complete The object body has been closed and the loading is finished. An object may not need to reflect the complete status before you can commence operating on it. Other objects may require that they are completely loaded. For example, you cannot create an OBJECT object that represents an tag until the has completed loading. This is because the ActiveX object construction requires a complete document body structure to attach itself to. Every time this readyState value changes, it triggers an onReadyStateChange event call-back. See also: LINK.title, onReadyStateChange Property attributes: ReadOnly. LINK.rel (Property) The relationship between the current element and the remote document. 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: -myLINK.rel HTML syntax: This is sometimes called a forward link. Although the HREF=”…” HTML tag attribute is normally the only means used to identify a target document, the browser is permitted to use the REL=”…” HTML tag attribute to decide whether to use the HREF value or how it should be used. 1343

JavaScript Programmer’s Reference LINK.media (Property) The target media

Tuesday, September 18th, 2007

JavaScript Programmer’s Reference LINK.media (Property) The target media that the document will be output to. 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: -myLINK.media This property is provided speculatively for a time when pages can be formatted differently according to the medium they are being delivered to. One of the following values would be appropriate: . all . print . screen . aural . braille . embossed . handheld . projection . tty . tv Warnings: . Note that although this is supported by MSIE version 4, it does not work on the Macintosh implementation of that browser version. LINK.readyState (Property) The current disposition of the link as it is being loaded from the server. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: String primitive JavaScript syntax: IE myLINK.readyState 1342