Essentials of Javascript - Cultural View

Essentials of Javascript - Cultural View Essentials of Javascript - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

Ajax (programming) 51 [20] Stamos, Alex; Lackey, Zane. "Attacking Ajax Web Applications" (http://www.isecpartners.com/files/ iSEC-Attacking_AJAX_Applications.BH2006.pdf). iSEC Partners. . Retrieved 2009-04-02. [21] http://www.adaptivepath.com/ideas/essays/archives/000385.php [22] http://www.dmoz.org/Computers/Programming/Languages/JavaScript/Ajax/ [23] http://www.xul.fr/en-xml-ajax.html [24] http://www.ibm.com/developerworks/web/library/wa-ajaxintro1.html AJAX.OOP AJAX.OOP is an open source JavaScript framework distributed under MIT License. Providing with OOP-style coding engine and AJAX requests handling functionality to create web2.0 components. Due to OOP paradigm AJAX.OOP library can be easily extended with additional functionality or used as core for other projects. The JavaScript OOP Library AJAX.OOP is a fast and scalable JavaScript Library for creating JavaScript/AJAX components in an object oriented way. Main feature - strong OOP paradigm implementation.AJAX.OOP engine allows the programmer to: • Create classes with object-like defining syntax • Inherit classes (both AJAX.OOP-style defined and created with native JavaScript code) • Aggregate classes (including aggregation of self and parent class with special operators this.$_self and this.$_super) • Define constructors as they are (name = 'constructor') • Override parent class properties and methods (but call parent if you need by using special access operator this.$super) • Access/call any parent properties and/or methods from any method of child class (just use this.$super accessor whenever you need to access parent properties and methods) • Use strict defined objects with workable 'instanceof' operator on them when instantiating an exemplar of AJAX.OOP classes External links • AJAX.OOP Official Website [1] • AJAX.OOP - Download [2] • AJAX.OOP - Documentation [3] References [1] http://ajaxoop.org/ [2] http://code.google.com/p/ajaxoop/downloads/list [3] http://ajaxoop.org/documentation

?: 52 ?: In computer programming, ?: is a ternary operator that is part of the syntax for a basic conditional expression in several programming languages. It is commonly referred to as the conditional operator. It originally comes from BCPL, whose equivalent syntax for e1 ? e2 : e3 was e1 -> e2, e3 [1] . Languages derived from BCPL tend to feature this operator. Conditional assignment ?: is used as follows: condition ? value if true : value if false The condition is evaluated true or false as a Boolean expression. On the basis of the evaluation of the Boolean condition, the entire expression returns value if true if condition is true, but value if false otherwise. Usually the two sub-expressions value if true and value if false must have the same type, which determines the type of the whole expression. The importance of this type-checking lies in the operator's most common use—in conditional assignment statements. In this usage it appears as an expression on the right side of an assignment statement, as follows: variable = condition ? value if true : value if false The ?: operator is similar to the way conditional expressions (if-then-else constructs) work in functional programming languages, like Scheme, ML, and Haskell, since if-then-else forms an expression instead of a statement in those languages. Usage This ternary operator's most common usage is to make a terse simple conditional assignment statement. For example, if we wish to implement some C code to change a shop's opening hours to 12 o'clock in weekends, and 9 o'clock on weekdays, we may use int opening_time = (day == WEEKEND) ? 12 : 9; instead of the more verbose int opening_time; if (day == WEEKEND) else opening_time = 12; opening_time = 9; The two forms are nearly equivalent. Keep in mind that the ?: is an expression and if-then-else is a statement. Note that neither value if true nor value if false expressions can be omitted from the ternary operator without an error report upon parsing. This contrasts with if..else statements, where the else clause can be omitted.

Ajax (programming) 51<br />

[20] Stamos, Alex; Lackey, Zane. "Attacking Ajax Web Applications" (http://www.isecpartners.com/files/<br />

iSEC-Attacking_AJAX_Applications.BH2006.pdf). iSEC Partners. . Retrieved 2009-04-02.<br />

[21] http://www.adaptivepath.com/ideas/essays/archives/000385.php<br />

[22] http://www.dmoz.org/Computers/Programming/Languages/JavaScript/Ajax/<br />

[23] http://www.xul.fr/en-xml-ajax.html<br />

[24] http://www.ibm.com/developerworks/web/library/wa-ajaxintro1.html<br />

AJAX.OOP<br />

AJAX.OOP is an open source JavaScript framework distributed under MIT License. Providing with OOP-style<br />

coding engine and AJAX requests handling functionality to create web2.0 components. Due to OOP paradigm<br />

AJAX.OOP library can be easily extended with additional functionality or used as core for other projects.<br />

The JavaScript OOP Library<br />

AJAX.OOP is a fast and scalable JavaScript Library for creating JavaScript/AJAX components in an object oriented<br />

way.<br />

Main feature - strong OOP paradigm implementation.AJAX.OOP engine allows the programmer to:<br />

• Create classes with object-like defining syntax<br />

• Inherit classes (both AJAX.OOP-style defined and created with native JavaScript code)<br />

• Aggregate classes (including aggregation <strong>of</strong> self and parent class with special operators this.$_self and<br />

this.$_super)<br />

• Define constructors as they are (name = 'constructor')<br />

• Override parent class properties and methods (but call parent if you need by using special access operator<br />

this.$super)<br />

• Access/call any parent properties and/or methods from any method <strong>of</strong> child class (just use this.$super accessor<br />

whenever you need to access parent properties and methods)<br />

• Use strict defined objects with workable 'instance<strong>of</strong>' operator on them when instantiating an exemplar <strong>of</strong><br />

AJAX.OOP classes<br />

External links<br />

• AJAX.OOP Official Website [1]<br />

• AJAX.OOP - Download [2]<br />

• AJAX.OOP - Documentation [3]<br />

References<br />

[1] http://ajaxoop.org/<br />

[2] http://code.google.com/p/ajaxoop/downloads/list<br />

[3] http://ajaxoop.org/documentation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!