learn: AJAX articles

and be informed on AJAX using our web articles directory


AJAX - RSS feeds

search the articles directory


Powered by Google™

old AJAX articles

Understanding the Definition and Philosophy of Web Services and SOA - ... common usage the term refers to those services that use SOAPformatted XML envelopes and have their interfaces described by WSDL. For ex...
Understanding the Definition and Philosophy of REST - ...ices. REST is in contradiction with technologies such as SOAP, WSDL, and WS-* specifications. The following offers a quick definition of REST:...
The Easiest Way to Get Started with Ajax and REST - ...’t need to change the tools you’re using today. Whether you’re using ASP.NET, JavaServer Pages (JSP), PHP, Ruby, or Python, you...
Testing a Dynamic Contract with Ajax - ...e case, implement the use case as a contract, write a test case(s) to implement the contract, implement the contract in the Mock URL, and finally...
Testing the Client Side Logic - ...box is checked and the button is clicked again, a different table is filled with content. The fact that clicking the same button results in two ...
Understanding JavaScript and Types - ...vaScript has no types or no type safety. Let’s start out with the simple declaration of a function, as illustrated by the following ex...
Coding Using Conventions and Not Configurations - ...not Ruby on Rails, but one aspect of Ruby on Rails namely, convention over configuration (see http://en.wikipedia.org/wiki/ Ruby_on_Rails for m...
Advantage of parameterless functions in JavaScript - ...tions that have no parameters, even though the caller of the function has passed parameters to the function. For example, let’s look at...
JavaScripot Functions - ...ry interesting from the perspective of writing JavaScript code, because the code can treat the function like another other object. This mean...
Implementing an Error and Exception Handling Strategy - ...og box to show an error and the other does not is a browser issue, not an error issue. A concise way of classifying the two errors is to ...
Understanding the Behavior of Variables When Implementing Recursion - ...ollowing code works perfectly: if( counter == 1) { buffer = "counter is 1"; } document.getEle...
Using Functions to Initialize and Make Decisions JavaScript - ...ht is off, and you turn off the light if the light is on. The behavior of the program is determined by the conditions. One example behavior t...
Understanding the Ramifications of Duck Typed Code - ...s a value or a pure reference. But should you even care about the difference? Is it something that you need to be aware of? It is when you are...
Implementing JavaScript Generics - ...eneric class in either Java or C#: class Container<Type> { Type _managed; } The Container class has a g...
Putting XMLHttpRequest into a Factory - ...l code is not a bad idea, but it does make for more complicated debugging. The main problem with behavioral code is that the debugger has no...
Defining and Extending Classes - ...tes to the problem of figuring out the instance of the function. Using JavaScript closures you can define a function within a function, as sh...
Implementing Code Blocks - ...nguages like Ruby, code blocks are part of the programming language and make for simpler code. You use code blocks whenever you would iterat...
Turning toSource into a Complete Serialization Solution - ... function DefinedClass() { this.localvalue = 10; this.localmethod = function(param) { info("DefinedClass.localmethod", &quo...
Implementing Mixins in JavaScript - ... the type. To extend the functionality of an instance, a property is assigned with a function or another object. Source: /...
Implementing Proxy Methods - ...s article; rather, this article focuses on applying the Proxy pattern for a single method. In the alternate way of wiring together two methods,...
Parent method implementation calls - ...is that the original method passed to the proxy method must also use apply. If when calling the original method the proxy function does not use a...
Implementing Delegates - ... browser calls window.onload, the browser is giving a script the chance to initialize itself with a complete HTML page. For scripters, this met...
Implementing Overloaded Methods - ...Object(); cls[ "method"] = function() { info( "method1", "hello"); } cls.method(); cls[ "method...
Validating Your Data - ...rm some invalid operations resulting in state corruption. You need to ensure that the validation occurs successfully. Theory Validation i...
Creating Dynamic Layouts - ...g varying resolutions, browsers, devices, and so on), and makes sensible use of the screen real estate available. Theory Think about what...
Manipulating Dynamic Content Blocks - ...y content as a single block through the use of an HTML div element. The div element allows content to float on the page, and it supports dragging...
Implementing Dialog Boxes - ...es” in quotes, because the div element is not a true dialog box. Instead, it is restricted to the boundaries of the HTML page. Typically, ...
Serializing HTML - ...he innerHTML property doesn’t generate the correct text. You need to work around this. Theory To understand where the innerHTML proper...
Dealing with Formatted Data and Forms - ...’s look at how to make forms more intelligent, so, for example, they can adjust their data setup automatically if you move to a different c...
Implementing an SOA Architecture - ... how to upgrade an already existing architecture to an SOA architecture. This article covers the following topics: • Designing Re...
Implementing the Application Logic Layer - ...onfiguration.Database.password, db = configuration.Database.db) cursor = conn.cursor () cursor.execute ("SELECT * from entries order...
Testing the Web Service - ...ded a new method or piece of information, that alteration would be made. It was not a big deal to make changes on the fly. With Web services and ...
XMLHttpRequest Details and Making Asynchronous Requests in Ajax - ...ey are used extensively. When a request has retrieved data, four properties are used to indicate how the request fared. Consider the following...
Implementing the Asynchronous Class in Ajax - ...code to load an Atom feed again: function LoadAtomFeed() { var asynchronous = new Asynchronous(); asynchronous.settings = { ...
Implementing the Synchronous Class in Ajax - ...hod needs to be adapted everything else can remain as is. For example, to convert the initial client code to use synchronous mode, you could use ...
Handling Errors in AJAX - ... The exception block will surround critical operations so that the script can continue. Depending on the nature of the exception and the b...
Ajax Processing the Atom Feed - ...nt = 0; title = null; link = null; author = null; dates = null; content = null; function parseAtom( xmldoc) { items = xmld...
Implementing a Universal Web Service Architecture using Ajax - ... develop a Representational State Transfer (REST)-based Web service. Specifically, it covers the following points: • Structuring aWeb ...
Identifying the Resource and Representation using Ajax - ...he default could just as easily have been XML or JavaScript Object Notation (JSON). If a client can only accept JSON, then the conversion from CSV...

latest articles under "AJAX"

Navigation: Categories » Computers and technology » AJAX

Below is a list of all AJAX articles. If you want to find a tutorial by keywords, all you have to do is a quick search in our directory. Just use the search option available at the top-right side of the page. The website search is powered by web-articles. Or, if you want to read specific AJAX tutorial, just point to it. The newest articles and tutorials are shown first in the list. To access the last ones, browse the pages 2, 3, 4... at the bottom. Also, you may browse articles alphabetically ordered.

Page# 1 2 (last added articles shown first)

Understanding the Behavior of Variables When Implementing Recursion (05/31/2007)
(...) The focus of this recipe is on figuring out how a variable behaves in different contexts. One example context is the implementation of recursion in JavaScript. Solution Two example functions that implement recursion in JavaScript follow. (...)
Using Functions to Initialize and Make Decisions JavaScript (05/31/2007)
(...) The logic is to perform an initialization if it has not already occurred. The function that is called is defined as follows, and it embeds a call to the initialization. Tip You could use this type of code to implement a lazy initialization when writing convention-based code that does not perform an explicit initialization. (...)
Understanding the Ramifications of Duck Typed Code (05/31/2007)
(...) I am not saying one is better than the other just that each has advantages and disadvantages. Developers tend to choose one over the other based on their programming habits. For example, I prefer value duck typing because I tend to serialize objects for later use. (...)
Implementing JavaScript Generics (05/31/2007)
(...) The following code example shows what can go wrong when you mix value and reference duck typing together: proxy : function(instance, funcIdentifier, newFunc) { if (!instance[funcIdentifier]) { throw new Error("Cannot proxy nonexistent method(" + funcIdentifier + ")"); } eval( "var generatedOrigFunc = " + instance[funcIdentifier].toString()); eval( "var generatedProxyFunc = " + newFunc.toString()); instance[funcIdentifier] = function() { var origFunc = generatedOrigFunc; var proxyFunc = generatedProxyFunc; var args = new Array(); for (var c1 = 0; c1 < arguments. (...)
Putting XMLHttpRequest into a Factory (05/31/2007)
(...) Take a look at these files, for example: /website/ROOT/ajaxrecipes/javascript/conventions.html, /website/ROOT/ajaxrecipes/javascript/proxy.html, and /website/ROOT/ajaxrecipes/ javascript/variablebehavior. (...)
Defining and Extending Classes (05/31/2007)
(...) Source: /website/ROOT/ajaxrecipes/javascript/definingextendingclasses.html function CreateClassInstance() { var inst = function() { inst.instantiated = 10; inst. (...)
Implementing Code Blocks (05/31/2007)
(...) push( c1 * c1); } return array; } To generate a series of numbers that are the square, a loop is created that counts from zero to the desired highest value. For each iteration, the value c1 * c1 (square of c1) is pushed onto array. Once the looping has completed, the array is returned. (...)
Turning toSource into a Complete Serialization Solution (05/31/2007)
(...) When the type is instantiated, the instantiated type has a toSource method that can be called, as illustrated in the following source code. Source: /website/ROOT/ajax articles/javascript/tosource.html var cls = new DefinedClass(); cls. (...)
Implementing Mixins in JavaScript (05/31/2007)
(...) defined2 = function() { } The DefinedClass function is used to define a type. Two methods, defined1 and defined2, are associated with the DefinedClass type. Each method is associated with the prototype property, so every time DefinedClass is instantiated, these methods will share the same function instance. (...)
Implementing Proxy Methods (05/31/2007)
(...) Source: /website/ROOT/ajax articles/javascript/proxy.html function DefinedClass() { } DefinedClass.prototype. (...)
Parent method implementation calls (05/31/2007)
(...) Another approach is to dynamically generate and evaluate some parts of the generated code, and use a dynamic function for the other parts. Each of these solutions is problematic, and the best solution is to use JavaScript generics. Using JavaScript generics, you can define the desired code, and at runtime the behavioral aspects can be expanded. (...)
Implementing Delegates (05/31/2007)
(...) onload, more likely than not one will overwrite the other. Imagine the following code written by one toolkit: window.onload = function() { // initialize toolkit 1} In this code example the toolkit is saying that when the onload event is called, use my functionality. (...)
Implementing Overloaded Methods (05/31/2007)
(...) method method is called twice, and for each call the function implementation called is the last assignment value. The code is trivial and is meant to illustrate that you cannot overload a method by assigning it. Overloading a method is useful in situations where a variable number of parameters are going to be called on a method. (...)
Ajax (04/07/2007)
(...) com/). Once people began to interact with the service, other features came to the fore. Gmail employs spellchecking, auto-completion of addresses, and other processes that are carried out transparently in the background. (...)

Enter page# 1 2 (last added articles shown first)