search the articles directory
Powered by Google™
old AJAX articles
Ajax - ...5, interest in this methodology soared. Could it really be that simply giving this
approach a snappy name like Ajax was responsible for the sudde...
Understanding the Definition and Philosophy of Ajax - ...pment. The problem with these kinds of questions is that once you begin to think
about them, you keep going in a circle and end up where you star...
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 ...
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)
Enter page# 1 2 (last added articles shown first)
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)
AJAX Fundementals The history the definition and how it can be used (06/13/2009)
(...) Cascading style sheets are also very important to AJAX as they are a highly mutable way to display the information received from the HTML and XML codes. JavaScript is a scripting language which is used to allow access to objects within other codes, and is most commonly used to add a bit of spice to a website. Finally, AJAX uses XMLHTTPRequest, which brings it all together by enforcing the asynchronous exchange of data between JavaScript, XML and HTTP (also known as hypertext transfer protocol), and thus establishing a seamless connection between the server and the client sides of a web page. (...)
(...) Cascading style sheets are also very important to AJAX as they are a highly mutable way to display the information received from the HTML and XML codes. JavaScript is a scripting language which is used to allow access to objects within other codes, and is most commonly used to add a bit of spice to a website. Finally, AJAX uses XMLHTTPRequest, which brings it all together by enforcing the asynchronous exchange of data between JavaScript, XML and HTTP (also known as hypertext transfer protocol), and thus establishing a seamless connection between the server and the client sides of a web page. (...)
Validating Your Data (06/01/2007)
(...) • The Web client is considered insecure, so the server could receive invalid data if clientside validation is the only validation. Client-side validation saves processing power on the server side by doing the validation and using the resources of the client. The downside is that in an HTML application, the client is considered insecure, and hackers can always bypass the security efforts of aWeb developer. (...)
(...) • The Web client is considered insecure, so the server could receive invalid data if clientside validation is the only validation. Client-side validation saves processing power on the server side by doing the validation and using the resources of the client. The downside is that in an HTML application, the client is considered insecure, and hackers can always bypass the security efforts of aWeb developer. (...)
Creating Dynamic Layouts (06/01/2007)
(...) Now computing devices are extremely powerful, but vary to an extreme in their screen resolution. Personal computing needs can vary from a low of 800×480 to a high of 4500×1200 for a dual screen. It doesn’t make sense to fix the screen resolution. (...)
(...) Now computing devices are extremely powerful, but vary to an extreme in their screen resolution. Personal computing needs can vary from a low of 800×480 to a high of 4500×1200 for a dual screen. It doesn’t make sense to fix the screen resolution. (...)
Manipulating Dynamic Content Blocks (06/01/2007)
(...) First, let’s define a content block. A content block is an HTML element that serves as a placeholder for HTML content. What distinguishes a content block from, say, a table cell, is that you can move a content block from one location in the HTML hierarchy to another. (...)
(...) First, let’s define a content block. A content block is an HTML element that serves as a placeholder for HTML content. What distinguishes a content block from, say, a table cell, is that you can move a content block from one location in the HTML hierarchy to another. (...)
Implementing Dialog Boxes (06/01/2007)
(...) Solution Two things must happen in order to make a div element behave like a dialog box. First, you must place the div element on the HTML page using absolute coordinates. Second, you need to make the div element aware of mouse movement. (...)
(...) Solution Two things must happen in order to make a div element behave like a dialog box. First, you must place the div element on the HTML page using absolute coordinates. Second, you need to make the div element aware of mouse movement. (...)
Serializing HTML (06/01/2007)
(...) html <html> <head> <title>Inconsistent .innerHTML</title> </head> <script language="JavaScript" src="/scripts/jaxson/common.js"></script> <script language="JavaScript" type="text/javascript"> function DOMInserted() { var element = document. (...)
(...) html <html> <head> <title>Inconsistent .innerHTML</title> </head> <script language="JavaScript" src="/scripts/jaxson/common.js"></script> <script language="JavaScript" type="text/javascript"> function DOMInserted() { var element = document. (...)
Dealing with Formatted Data and Forms (06/01/2007)
(...) The advantage of doing a one-to-one mapping is that it simplifies the work for you. It’s easier for you to write a database statement such as “Search for this city” rather than “Search for this thing, which could be a city, address, or country.” Yet, the seemingly vague input is the better approach from the perspective of the user. (...)
(...) The advantage of doing a one-to-one mapping is that it simplifies the work for you. It’s easier for you to write a database statement such as “Search for this city” rather than “Search for this thing, which could be a city, address, or country.” Yet, the seemingly vague input is the better approach from the perspective of the user. (...)
Implementing an SOA Architecture (06/01/2007)
(...) HTML is a user interface technology that is not universally understood across all devices. An Atom end device could probably guesstimate the format structure, but you probably know the sweat and pain associated with writing HTML code that can display on all devices. With aWeb service based on the Atom format, you have a clear understanding of what the data is and represents. (...)
(...) HTML is a user interface technology that is not universally understood across all devices. An Atom end device could probably guesstimate the format structure, but you probably know the sweat and pain associated with writing HTML code that can display on all devices. With aWeb service based on the Atom format, you have a clear understanding of what the data is and represents. (...)
Implementing the Application Logic Layer (06/01/2007)
(...) user, passwd = configuration.Database.password, db = configuration. (...)
(...) user, passwd = configuration.Database.password, db = configuration. (...)
Testing the Web Service (06/01/2007)
(...) Let’s put this into another context. Imagine you own a pizza restaurant, with take-out orders, online orders, and wait staff to take orders from onsite customers. So customers can order a pizza in a few different ways, and each way probably has a completely different ordering system. (...)
(...) Let’s put this into another context. Imagine you own a pizza restaurant, with take-out orders, online orders, and wait staff to take orders from onsite customers. So customers can order a pizza in a few different ways, and each way probably has a completely different ordering system. (...)
XMLHttpRequest Details and Making Asynchronous Requests in Ajax (06/01/2007)
(...) getElementById( 'httpstatus').innerHTML = xmlhttp.statusText; document. (...)
(...) getElementById( 'httpstatus').innerHTML = xmlhttp.statusText; document. (...)
Implementing the Asynchronous Class in Ajax (06/01/2007)
(...) , get) to make an HTTP request. The purpose of the settings data member is to provide the callbacks and extra information associated with a request. In the example, the onComplete method is called once the HTTP request has completed. (...)
(...) , get) to make an HTTP request. The purpose of the settings data member is to provide the callbacks and extra information associated with a request. In the example, the onComplete method is called once the HTTP request has completed. (...)
Implementing the Synchronous Class in Ajax (06/01/2007)
(...) You still provide a settings code block, and you still call the get function. The reason this approach works is due to the way that Asynchronous and Synchronous are wired together, as illustrated by the following code: function Asynchronous(userSettings) { this.xmlhttp = new FactoryXMLHttpRequest(); this. (...)
(...) You still provide a settings code block, and you still call the get function. The reason this approach works is due to the way that Asynchronous and Synchronous are wired together, as illustrated by the following code: function Asynchronous(userSettings) { this.xmlhttp = new FactoryXMLHttpRequest(); this. (...)
Handling Errors in AJAX (06/01/2007)
(...) The error display is where the problems begin, because most browsers display errors as little icons, or in an invisible JavaScript console. For developers, it is easy to figure out the source of the error, but users are often bewildered. The generalized approach is effective because of the way the error is routed. (...)
(...) The error display is where the problems begin, because most browsers display errors as little icons, or in an invisible JavaScript console. For developers, it is easy to figure out the source of the error, but users are often bewildered. The generalized approach is effective because of the way the error is routed. (...)
Ajax Processing the Atom Feed (06/01/2007)
(...) getElementsByTagName('link')[0].getAttribute('href'); dates[i] = items.getElementsByTagName('entry ')[i]. (...)
(...) getElementsByTagName('link')[0].getAttribute('href'); dates[i] = items.getElementsByTagName('entry ')[i]. (...)
Implementing a Universal Web Service Architecture using Ajax (06/01/2007)
(...) Solution Part 1 The implementation of the solution involves taking one of the already existing socket technologies and using that technology to build aWeb service. For illustration purposes, this article uses a single technology Java. You could choose . (...)
(...) Solution Part 1 The implementation of the solution involves taking one of the already existing socket technologies and using that technology to build aWeb service. For illustration purposes, this article uses a single technology Java. You could choose . (...)
Identifying the Resource and Representation using Ajax (06/01/2007)
(...) Separating the resource from the representation means that a single URL will have separate representations. The representation that is sent depends on the value of the HTTP Accept-* header, but doesn’t need to be the only one. Let’s focus on the Accept HTTP header and consider the following HTTP conversation that returns some content. (...)
(...) Separating the resource from the representation means that a single URL will have separate representations. The representation that is sent depends on the value of the HTTP Accept-* header, but doesn’t need to be the only one. Let’s focus on the Accept HTTP header and consider the following HTTP conversation that returns some content. (...)
Ajax Closed Access Web Services (06/01/2007)
(...) That lack of documentation is the decision maker of whether you use REST to store data, or whether you use background processes. The database vendors aren’t going to allow you to add data to their database using C file operations, because you would corrupt the database. Whenever you execute a SQL insert statement, a whole host of things happen (such as indexing and optimization) that wouldn’t occur if you accessed the database directly. (...)
(...) That lack of documentation is the decision maker of whether you use REST to store data, or whether you use background processes. The database vendors aren’t going to allow you to add data to their database using C file operations, because you would corrupt the database. Whenever you execute a SQL insert statement, a whole host of things happen (such as indexing and optimization) that wouldn’t occur if you accessed the database directly. (...)
Implementing Web Services for Large or Slow Data Sets (06/01/2007)
(...) In this article’s solution, state and callbacks are required. Efficiency is one of the requirements of this solution, but remember that efficiency is relative, and the solution will be as efficient as possible for the context. As you know, in any search engine, you enter a term or phrase in a text box, click the Search button, and the relevant HTML pages are returned for the term or phrase you typed in. (...)
(...) In this article’s solution, state and callbacks are required. Efficiency is one of the requirements of this solution, but remember that efficiency is relative, and the solution will be as efficient as possible for the context. As you know, in any search engine, you enter a term or phrase in a text box, click the Search button, and the relevant HTML pages are returned for the term or phrase you typed in. (...)
Implementing the HTML Client (06/01/2007)
(...) initialize("display", "listElements"); } // Removed for clarity </script> <body onload="Initialize()"> <table> <tr id="listElements"> <td onmouseover="DynamicIterator.startIteration( -1)" onmouseout="DynamicIterator.stopIteration()"> <img src="/images/left. (...)
(...) initialize("display", "listElements"); } // Removed for clarity </script> <body onload="Initialize()"> <table> <tr id="listElements"> <td onmouseover="DynamicIterator.startIteration( -1)" onmouseout="DynamicIterator.stopIteration()"> <img src="/images/left. (...)
Multithreading in JavaScript (06/01/2007)
(...) makeCall = function() { if( typeof( this.obj) == "function") { this.obj( this. (...)
(...) makeCall = function() { if( typeof( this.obj) == "function") { this.obj( this. (...)
Managing the Data Using a Client Cache using Ajax (06/01/2007)
(...) • Server-side only: A form of caching where only the server side caches the information. The client will constantly query the server for the appropriate information. This form of cache is generally inefficient, and it should be used only if the physical network distance between the client and server is minimal (e. (...)
(...) • Server-side only: A form of caching where only the server side caches the information. The client will constantly query the server for the appropriate information. This form of cache is generally inefficient, and it should be used only if the physical network distance between the client and server is minimal (e. (...)
Using HTTP Validation (06/01/2007)
(...) html HTTP/1.1 Accept: */* Accept-Language: en-ca Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6. (...)
(...) html HTTP/1.1 Accept: */* Accept-Language: en-ca Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6. (...)
Real time data using Ajax (06/01/2007)
(...) , the stock market, a machine running process, etc.). Another difference is that usually a long-running task will have an answer, whereas a real-time task has no answer just data that keeps being generated. (...)
(...) , the stock market, a machine running process, etc.). Another difference is that usually a long-running task will have an answer, whereas a real-time task has no answer just data that keeps being generated. (...)
Implementing an Ajax Shopping Cart (06/01/2007)
(...) A shopping cart is not like a key, because a key is unique from another key due to its shape. The uniqueness of the shopping cart is defined not by the actual cart, but by the items that you place in the cart and plan to purchase. In Europe, this uniqueness is critical because Europeans tend to shop in sections. (...)
(...) A shopping cart is not like a key, because a key is unique from another key due to its shape. The uniqueness of the shopping cart is defined not by the actual cart, but by the items that you place in the cart and plan to purchase. In Europe, this uniqueness is critical because Europeans tend to shop in sections. (...)
Creating HTTP Resources with Ajax (06/01/2007)
(...) asynchronous = null; this.baseURL = url; this.uniqueURL = null; this. (...)
(...) asynchronous = null; this.baseURL = url; this.uniqueURL = null; this. (...)
Implementing a Shopping Cart using Ajax (06/01/2007)
(...) innerHTML = "Have shopping cart"; } function Initialize() { unique.getIt(); } function CustomerDetails() { var obj = new Object(); obj.data = "address=. (...)
(...) innerHTML = "Have shopping cart"; } function Initialize() { unique.getIt(); } function CustomerDetails() { var obj = new Object(); obj.data = "address=. (...)
Implementing a Bank Account using Ajax into a shopping cart (06/01/2007)
(...) Whether you use cookies or HTTP authentication, the clients send a token whenever they wish to access a given URL. The server will validate if the token has permission to access the URL. Using Cookies to Authorize Access HTTP cookies4 have a bad reputation, partially undeserved, and therefore many will argue that you should not use cookies. (...)
(...) Whether you use cookies or HTTP authentication, the clients send a token whenever they wish to access a given URL. The server will validate if the token has permission to access the URL. Using Cookies to Authorize Access HTTP cookies4 have a bad reputation, partially undeserved, and therefore many will argue that you should not use cookies. (...)
Do not Submit Your Forms Ajax Them (06/01/2007)
(...) From a content-processing perspective, the difference in processing between an HTTP GET and POST is dramatic. The client could call the URL multiple times, and the content would be generated each time. An HTTP POST is different in that the client has to send state. (...)
(...) From a content-processing perspective, the difference in processing between an HTTP GET and POST is dramatic. The client could call the URL multiple times, and the content would be generated each time. An HTTP POST is different in that the client has to send state. (...)
Understanding the Definition and Philosophy of Ajax (05/31/2007)
(...) Duck-typed programming is about writing code where the definition of the classes is not known ahead of time, but you know the object has some specific behavior. Reuse is made possible by cloning and assembling the objects dynamically at runtime. Classical object-oriented programming is about defining the behavior of the type before execution. (...)
(...) Duck-typed programming is about writing code where the definition of the classes is not known ahead of time, but you know the object has some specific behavior. Reuse is made possible by cloning and assembling the objects dynamically at runtime. Classical object-oriented programming is about defining the behavior of the type before execution. (...)
Understanding the Definition and Philosophy of Web Services and SOA (05/31/2007)
(...) With this definition, Web services need not be a machine-to-machine interaction, as aWeb browser in the context of Ajax has the ability to call aWeb service. It’s important to realize that in the context of Ajax, the programmatic interface may generate an interface definition that is intended to be processed by a human for example, a link or button that is pressed to generate new content. With a generalized definition of Web services, let’s look at a definition of service-oriented architecture (SOA):6 In computing, the term service-oriented architecture (SOA) expresses a perspective of software architecture that defines the use of loosely coupled software services to support the requirements of business processes and software users. (...)
(...) With this definition, Web services need not be a machine-to-machine interaction, as aWeb browser in the context of Ajax has the ability to call aWeb service. It’s important to realize that in the context of Ajax, the programmatic interface may generate an interface definition that is intended to be processed by a human for example, a link or button that is pressed to generate new content. With a generalized definition of Web services, let’s look at a definition of service-oriented architecture (SOA):6 In computing, the term service-oriented architecture (SOA) expresses a perspective of software architecture that defines the use of loosely coupled software services to support the requirements of business processes and software users. (...)
Understanding the Definition and Philosophy of REST (05/31/2007)
(...) The APIs may support the transfer of documents, but the WSDL operations are APIs. This is not a bad thing, just a reference point to say that SOAP is about APIs. REST is about using the HTTP protocol to manipulate state indicated by a resource. (...)
(...) The APIs may support the transfer of documents, but the WSDL operations are APIs. This is not a bad thing, just a reference point to say that SOAP is about APIs. REST is about using the HTTP protocol to manipulate state indicated by a resource. (...)
The Easiest Way to Get Started with Ajax and REST (05/31/2007)
(...) After all, you’re reading an Ajax and REST recipe article, so I assume that you plan on implementing Ajax and REST solutions. When decoupling the client from the server, you can create the content on either side independently. You can develop the client using technologies such as DHTML and JavaScript. (...)
(...) After all, you’re reading an Ajax and REST recipe article, so I assume that you plan on implementing Ajax and REST solutions. When decoupling the client from the server, you can create the content on either side independently. You can develop the client using technologies such as DHTML and JavaScript. (...)
Testing a Dynamic Contract with Ajax (05/31/2007)
(...) The details of managing redirections aren’t covered here but will be covered in the following section entitled “Testing a Dynamic Contract.” How the temporary URL is determined falls into the category of pixie dust, so let’s focus on the details of the contract that performs the addition. The following represents the HTTP request used to perform an addition: POST /services/calculatorrest/operations/2364564565 HTTP/1. (...)
(...) The details of managing redirections aren’t covered here but will be covered in the following section entitled “Testing a Dynamic Contract.” How the temporary URL is determined falls into the category of pixie dust, so let’s focus on the details of the contract that performs the addition. The following represents the HTTP request used to perform an addition: POST /services/calculatorrest/operations/2364564565 HTTP/1. (...)
Testing the Client Side Logic (05/31/2007)
(...) Testing the format of the media is not a problem and is akin to testing the contract. You also need to test if a client such as RealPlayer can consume, process, and display the media. Figuring this out requires taking a snapshot and then checking if the bits and bytes are displayed properly. (...)
(...) Testing the format of the media is not a problem and is akin to testing the contract. You also need to test if a client such as RealPlayer can consume, process, and display the media. Figuring this out requires taking a snapshot and then checking if the bits and bytes are displayed properly. (...)
Understanding JavaScript and Types (05/31/2007)
(...) The result of adding the numbers num1 and num2 is returned to the caller as follows: assertEquals(4, AddTwoNumbers(2, 2)); The assertEquals function is used to verify that when the AddTwoNumbers function is called with 2 and 2, 4 is generated as a result. When you run the code, everything works as expected, but can you feel assured that everything is correct? The answer is no, you cannot feel assured, because some misleading assumptions are being made. The AddTwoNumbers function declares two numbers, but the assumption that num1 and num2 are numbers is not reasonable. (...)
(...) The result of adding the numbers num1 and num2 is returned to the caller as follows: assertEquals(4, AddTwoNumbers(2, 2)); The assertEquals function is used to verify that when the AddTwoNumbers function is called with 2 and 2, 4 is generated as a result. When you run the code, everything works as expected, but can you feel assured that everything is correct? The answer is no, you cannot feel assured, because some misleading assumptions are being made. The AddTwoNumbers function declares two numbers, but the assumption that num1 and num2 are numbers is not reasonable. (...)
Coding Using Conventions and Not Configurations (05/31/2007)
(...) Consider the following JavaScript JsUnit test: var testsToRun = { // Start JavaScript code for test cases here testPlainVanilla : function() { // Some code testManager.success(); } // End JavaScript code for test cases }; testManager.setTestCases( testsToRun); The details of what the variables and classes do are not relevant. (...)
(...) Consider the following JavaScript JsUnit test: var testsToRun = { // Start JavaScript code for test cases here testPlainVanilla : function() { // Some code testManager.success(); } // End JavaScript code for test cases }; testManager.setTestCases( testsToRun); The details of what the variables and classes do are not relevant. (...)
Advantage of parameterless functions in JavaScript (05/31/2007)
(...) Maybe one, or two, or ten of all the parameters will be assigned, or maybe none of them will be assigned. This uncertainty poses an additional challenge because you are left wondering if the parameter is assigned or not. For example, consider the following function declaration. (...)
(...) Maybe one, or two, or ten of all the parameters will be assigned, or maybe none of them will be assigned. This uncertainty poses an additional challenge because you are left wondering if the parameter is assigned or not. For example, consider the following function declaration. (...)
JavaScripot Functions (05/31/2007)
(...) In a dynamic language, an interface is not necessary because you can call a method directly without requiring a specific type. In the case of the XMLHttpRequest object instantiation, the Factory pattern returns a function reference that can be used to instantiate XMLHttpRequest using the appropriate technique. In JavaScript, a function is an object that can be assigned to a variable. (...)
(...) In a dynamic language, an interface is not necessary because you can call a method directly without requiring a specific type. In the case of the XMLHttpRequest object instantiation, the Factory pattern returns a function reference that can be used to instantiate XMLHttpRequest using the appropriate technique. In JavaScript, a function is an object that can be assigned to a variable. (...)
Implementing an Error and Exception Handling Strategy (05/31/2007)
(...) Having an incomplete framework try to process an error will just confuse, not help. Your objective should be to initialize and prepare the error handling framework when the HTML page has been completely processed. To know when to initialize the error handling framework, you need to know when HTML page initialization ends and HTML page runtime begins. (...)
(...) Having an incomplete framework try to process an error will just confuse, not help. Your objective should be to initialize and prepare the error handling framework when the HTML page has been completely processed. To know when to initialize the error handling framework, you need to know when HTML page initialization ends and HTML page runtime begins. (...)
Enter page# 1 2 (last added articles shown first)
