This is a new article on Devshed.com that may be of interest. It`s called "An Object Lesson in Javascript," and it`s all about using Object Oriented Programming techniques to enhance JavaScript coding.... Tags:
Want to create functions in JavaScript that can accept varying number of parameters, or parameters specified in arbitrary order? This tutorial shows you how....
An event handler executes a segment of a code based on certain events occurring within the application, such as onLoad or onClick. This tutorial along with an example explains each of all the event handlers in JavaScript.... Tags:
Here are the basics of how to make a simple javascript array for your HTML page.
To get you started, first you have to call the scripting method you are going to use. In this case we will call javascripting method....
Literal notation is a new way of defining arrays in JavaScript that`s extremely flexible and robust. Learn about literal notation in this tutorial.... Tags:
Events are the glue which hold together the word inter-active. In learning to control and handle events you bridge the gap between a two-dimensional web page and a three-dimensional one. In this article we look closely at events, what they are, how to handle them with JavaScript, and how they differ -- in some cases significantly -- between the fourth generation versions of Netscape Navigator and Microsoft Internet Explorer....
Writing classes in JavaScript doesn`t give full functionality of an object oriented language, but it at least gives data hiding and encapsulation which are very useful specially when JavaScript is not a strongly typed language. It is very useful in cases when you need to handle multiple objects , instead of having arrays for all kinds of variables and then managing those arrays in methods you can just write a class to handle one object and then make many instances of that class. This also gives the name space resolution to the variables so that you can avoid using global variables and still use variables across procedures....
Google and Yahoo! know that speeding pages to their users is crucial. Both companies have invested millions of dollars in the server capacity and software enhancements that it takes to quickly serve search results to millions of users everyday. However, the optimizations that these companies perform do not stop at infrastructure investments. They optimize the delivery of their data right down to the data itself.
In the case of Google and Yahoo!, these smart coding practices were most likely designed into the development of their applications. Unfortunately, many Web authors and developers are forced with the task of applying smart optimization practices to an already complete Web site. There are ways that you can easily perform the same types of optimizations on your existing Web site code. Using a good Web site optimization tool is the best way and it can lead to substantial savings on any Web site. The following article is an illustration of how much can be saved on a typical Web pa...
Regular expressions are represented as samples for searching set symbols combinations in text lines (this search refers to comparison to the sample)....
In this JavaScript tutorial, you will learn about FileUpload object, FileUpload properties, accessKey, disabled, form, name, type, value, FileUpload methods - blur(), focus(), select(), handleEvent(), click() and event handlers - onblur, onchange and onfocus....
In this JavaScript tutorial you will learn about JavaScript event object, properties of event object, altKey, ctrlKey and shiftKey, button, integer value action representation, cancelBubble, clientX and clientY, fromElement and toElement, height and width....