Simple JavaScript OOP Programming

JavaScript has a unique style for Object-Oriented Programming. The style is closer to the syntax of a functional language than a procedural language. The syntax is not difficult to learn, but it behaves completely unlike what you expect from a compiled language like Java or C++. Central to JavaScript OOP is the way that new functions may be attached to existing objects. Here are a few simple example of how a JavaScript object can be instantiated and manipulated. [More…]

A Simple JavaScript AJAX Example

AJAX (Asynchronous JavaScript and XML) uses a combination of JavaScript, XHTML/XML, and DHTML techniques to create dynamic web pages that can update without reloading. The technique is based on the use of the JavaScript XMLHttpRequest() function to perform GET and POST operations with a server script, with additional client side DHTML code to modify the requested page elements. [More…]