JavaScript » News
5 Benefits Obtained through Ruby on Rails Web DevelopmentSat, 19 Jun 2010 00:33:17 GMT
Although developing the business specific website is not an easy job but at times, technology that is being used for the development of the website makes it developing easy. A simple statement but speaks everything. Currently thousands of technologies are surrounding the global environment... by adi dev
JavaScript Arrays
Sat, 27 Dec 2008 04:23:37 GMT
Because objects are collections of properties with each property having its own name and value, arrays are actually JavaScript objects. Each property in an array is an element, and each element can be assigned a value. One way to think of an array is as a collection of numbered variables... by George Freedrich
How I Decide Which Open Source AJAX Library to Use
2006-07-10 03:00:00
(...) (See www. (...) by Dave Bowers
Goals of AJAX
2006-08-03 03:00:00
(...) Obviously, it is easier to focus on making current tasks easier. In Web development environments, this can be further broken down into two main goals: increasing interactivity and decreasing the time required to perform a task. In nonintranet cases, you may also have a related technical goal of reducing bandwidth use; by transferring less data to the browser, you can reduce page load times and improve the user's overall experience. (...) by Dave Bowers
XMLHttpRequest Overview
2006-08-14 03:00:00
(...) With it, JavaScript can make GET and POST HTTP requests. (For POST requests, data can be sent to the server in a format of your choosing.) The main limitations to XMLHttpRequest are due to the browser security sandbox. (...) by Carol Rudenberg
Promises and Problems of Combining AJAX with Other New Technologies
2006-08-17 03:00:00
(...) The mature technologies include Java and Flash. (Flash is the most important because its plug-in is widely installed, and its design is optimized for providing interactive elements and animations to Web sites.) Java can also be used to add interactivity to sites, but its popularity has waned over the past five years, and it's no longer installed by default everywhere. (...) by Dave Bowers
JavaScript as a Primary Development Language for AJAX applications
2006-08-24 03:00:00
(...) If you take some time to look at JavaScript with a fresh eye, you will notice that most of its problems no longer exist. The core language is now standardized with the European Computer Manufacturer's Association (ECMA) standards group and is supported on all modern browsers. Of course, these browsers also support older proprietary syntaxes, and you should avoid these as much as possible. (...) by Dave Bowers
What Is Ajax
2006-08-31 03:00:00
(...) While using a spreadsheet such as Excel, for instance, we expect the changes we make in one cell to propagate immediately through the neighboring cells while we continue to type, scroll the page, or use the mouse. Unfortunately, this sort of interaction has seldom been available to users of web-based applications. Much more common is the experience of entering data into form fields, clicking on a button or link, and then sitting back while the page slowly reloads to exhibit the results of the request. (...) by Carol Rudenberg
Integrating AJAX into a Framework
2006-09-20 03:00:00
(...) Frameworks without a front controller have an easier time incorporating AJAX because they can add a new entry point just for AJAX; many AJAX Remote Procedure Call (RPC) implementations provide code to help do this. The way you integrate with a front controller depends heavily on the style of AJAX you're performing. If you're taking a document-centric approach, integration is generally easy; you just need the ability to create pages in the needed output format. (...) by Dave Bowers
Sending Asynchronous Requests
2006-10-14 03:00:00
(...) However, they aren't the standard use case for XMLHttpRequest because the entire browser is locked while the request is happening. There are some circumstances in which blocking is useful (mainly when a decision needs to be made before the current function ends), but in most cases, you'll want these requests to happen in the background. An asynchronous request allows the browser to continue running JavaScript code and users to continue interacting with the page while the new data is loaded. (...) by Carol Rudenberg
Cross Browser XMLHttpRequest
2006-10-14 03:00:00
(...) Opera and Safari also support the same basic API, but only in their more recent versions. When you are writing cross-browser, the first problem you need to overcome is that XMLHttpRequest is an ActiveX object in IE, and it's a normal JavaScript object in Mozilla and the other browsers. There are a number of approaches to overcoming this problem, including optional JScript code for IE, but I find that the simplest solution is just to use exceptions. (...) by Carol Rudenberg
AJAX Fallback Option 1 ~ Sending a Request Using an IFrame
2006-10-15 03:00:00
(...) This need forces all requests being made with IFrames to be made to pages designed to deal with IFrame requests. (Code can't just grab an XML file in the way that XMLHttpRequest allows.) Note that the use of IFrames does have a number of further limitations: Support of only asynchronous requests Server pages needing changed Phantom entries in browser's history Odd back/forward button behavior in some browsers Large differences in browser implementations, especially in older browsers One advantage that an IFrame has over XMLHttpRequest is that it can be used to make file uploads. (...) by Carol Rudenberg
AJAX Fallback Option 2 ~ Sending a Request Using a Cookie
2006-10-16 03:00:00
(...) Cookie-based AJAX is most useful when your site is designed for it, because its limitations make it hard to use it as a fallback. The basic functionality is provided by setting a cookie, loading an image, and then polling on an interval while waiting for the response to appear. The implementation is simple; to do something besides alerting the contents of the result, you just set your own custom onComplete event handler. (...) by Carol Rudenberg
AJAX Usability Guidelines
2006-11-05 02:00:00
(...) Focus on buzzwords and the latest technology results in nice demos but not necessarily in easy-to-use sites. Web development should always be user focused; adding AJAX to the mix shouldn't change that. As you use AJAX, keep the following guidelines in mind, and you'll end up with a highly usable site or Web application: Keep the user's expectations in mind Provide feedback to actions Maintain the user's focus when adding content Keep the ability to undo actions Know if you are developing an application or a Web site Only use AJAX where it has the greatest effect Have a plan for those users without XMLHttpRequest The following subsections cover each of the points in more detail. (...) by Dave Bowers
Advantages and Disadvantages of AJAX Techniques ~ AJAX Without XMLHttpRequest
2006-11-05 02:00:00
(...) The most common would be in the case of an older browser. This is the hardest to work around, not because there is no AJAX fallback, but because all the other DOM manipulation that you do within the application won't work. Another problem case is when your browser supports everything that is needed except for XMLHttpRequest. (...) by Dave Bowers
Nested Loops, label and continue Statements
2008-10-22 03:00:00
(...) For the most part, I don't use continue because, like the break statement, it can signal sloppy programming practices and poor planning. However, when used appropriately and in the right context, continue can be a valuable programming option. The statement jumps out of sequence in a loop structure, but, unlike break, which exits the loop, continue jumps to test the termination condition of the loop, effectively skipping the current iteration of statements within the loop. (...) by George Freedrich
Operators Precedence
2008-10-23 03:00:00
(...) The innermost parentheses are evaluated first and work outward. So, if you want two numbers added before multiplication, place them in parentheses. The following two script excerpts show the difference results from different precedence order: var alpha = 3 * 4 + 7 //alpha's value is 19 — 12 + 7 var beta = 3 * (4 + 7) // beta's value is 33 — 3 * 11 When all of the operators have the same precedence, the evaluations occur from left to right. (...) by George Freedrich
The ''with'' Statement
2008-11-04 02:00:00
(...) First you must state the object as follows: document.formName.. (...) by George Freedrich
Conditional Structures
2008-11-30 02:00:00
(...) Used in concert with different types of comparative operators, conditional statements take the script on different routes, depending on what conditions have been met. At the same time that JavaScript has a thinking structure, so should designers. The ability to fluently write your own scripts rather than cutting and pasting someone else's design frees you from that person's vision of a page or page component. (...) by George Freedrich
Types of operators in JavaScript
2008-12-25 02:00:00
(...) The left operand is a variable, an array element, or an object property, and the right operand is either a literal or another variable, array element, or object property. Assigning a variable a value can be accomplished with any number of different combinations of variables, array elements, object properties, and literals. The following provides an idea of the range of assignments: alpha= 77; alpha= (fishSize. (...) by George Freedrich



