You are here:About>Computing & Technology>JavaScript
About.comJavaScript

Stephen's JavaScript Blog April 2008 Archive

From Stephen Chapman,
Your Guide to JavaScript.
FREE Newsletter. Sign Up Now!

Focus on JavaScript Blog
April 2008 Archive

Parsing XML
JavaScript contains code to make parsing XML returned from the server in order to make it easier to add it into your page. One common way to get the information passed ... Read More

Wednesday April 30, 2008 | permalink | comments (0)
Print Friendly Pages
Can JavaScript assist us in making "print friendly" web pages? Well that depends on what you mean by "assist" and also what you mean by "print friendly pages". The way of ... Read More

Tuesday April 29, 2008 | permalink | comments (0)
Other Objects
JavaScript has quite a few pre-defined objects many of which you will rarely use. In the last few modern JavaScript tutorials we have looked at some of the types of object ... Read More

Monday April 28, 2008 | permalink | comments (0)
Defining Classes
JavaScript allows you to define your own classes. The one thing that makes the biggest difference between a structured program and an object oriented program is the ability to define your ... Read More

Sunday April 27, 2008 | permalink | comments (0)
Strings to Numbers
HTML doesn't provide a way to enter numbers so JavaScript needs to convert them from text JavaScript provides so many different ways to convert text strings to numbers that there will ... Read More

Saturday April 26, 2008 | permalink | comments (0)
Multiple Dimensional Arrays
When is a two dimensional array not a two dimensional array? When it is done using JavaScript. JavaScript doesn't support the creation of arrays with more than one dimension. Instead it ... Read More

Friday April 25, 2008 | permalink | comments (0)
Split a Line
JavaScript can provide advanced text manipulation. One problem with splitting text across multiple lines in JavaScript is how to avoid splitting the line in the middle of a word. This function ... Read More

Thursday April 24, 2008 | permalink | comments (0)
Javascript Object Notation
JavaScript Object Notation is not only a valid way to define objects in JavaScript, it also provides a convenient way to pass data between the server and the client. The eleventh ... Read More

Wednesday April 23, 2008 | permalink | comments (0)
Array Average Value
If we have an array of numbers in JavaScript, how can we determine the average? While getting the maximum and minimum values from an array does not depend on the array ... Read More

Tuesday April 22, 2008 | permalink | comments (0)
Alert
The dialog boxes built into JavaScript are best avoided in live web pages

Monday April 21, 2008 | permalink | comments (0)
Object Oriented Javascript
For more complicated JavaScript you can define your own objects In the thirty fourth tutorial in the original "Learn JavaScript" series we introduce an alternative method of writing JavaScript code that ... Read More

Sunday April 20, 2008 | permalink | comments (0)
Equals, Equals Equals, or Equals Equals Equals
JavaScript uses up to three equals signs next to one another. JavaScript uses the equals sign for assigning values to fields as well as for comparing fields. This tutorial covers what ... Read More

Saturday April 19, 2008 | permalink | comments (0)
setTimeout or setInterval
JavaScript delay or JavaScript repeated actions - how to work out which is which. Do you want to know exactly what the difference between the JavaScript functions setTimeout and setInterval is? ... Read More

Friday April 18, 2008 | permalink | comments (0)
Transition Image Effects
JavaScript can generate both fade and wipe effects when replacing one image with another. Creating a transition effect when swapping one image for another is trivial in JScript where Internet Explorer ... Read More

Thursday April 17, 2008 | permalink | comments (0)
Setting Response Type
How do we set an Ajax response to be XML or text so that JavaScript can tell how to process it? In the last Ajax tutorial we looked at how we ... Read More

Wednesday April 16, 2008 | permalink | comments (0)
Array Maximum and Minimum Values
Add max and min methods to your JavaScript arrays to make it easier to locate the smallest and largest values in the array. With JavaScript we are not limited to the ... Read More

Tuesday April 15, 2008 | permalink | comments (0)
Dates
JavaScript makes calculations based on dates and times easy by providing date objects that supply many of the needed methods. This seventeenth modern JavaScript tutorial introduces you to the easiest way ... Read More

Monday April 14, 2008 | permalink | comments (0)
Global Events
JavaScript can capture events from anywhere in the browser If we create a global event handler then we can intercept all occurrences of one or more specified events throughout the entire ... Read More

Sunday April 13, 2008 | permalink | comments (0)
No Right Click Script
Some people try to use JavaScript for really pointless tasks No right click scripts don't prevent people from viewing your page source, they just annoy your legitimate visitors who like to ... Read More

Saturday April 12, 2008 | permalink | comments (0)
Screen Resolution
JavaScript can easily retrieve useless information about the computer screen as well as more useful information about the size of their browser window Not all of your visitors will use the ... Read More

Friday April 11, 2008 | permalink | comments (0)
Disable or Remove Images
JavaScript can help you test your web pages. Not everyone using the web has a browser that can display images and some people just prefer to turn images off in their ... Read More

Thursday April 10, 2008 | permalink | comments (0)
responseText and responseXML
Sometimes an ajax request supplies the response in two different ways. The eighth Ajax tutorial looks at how we can access the results returned from our Ajax request to the server. ... Read More

Wednesday April 9, 2008 | permalink | comments (0)
Remove Formatting from Numbers
JavaScript can reformat your visitor's input It is much friendlier to your visitors if you allow them to format the numbers, currency values, phone numbers etc in whatever format they prefer. ... Read More

Tuesday April 8, 2008 | permalink | comments (0)
Strings
Text strings are one of the most common pieces of content you will want to work with in JavaScript This sixteenth tutorial on Modern JavaScript looks both at how to define ... Read More

Monday April 7, 2008 | permalink | comments (0)
Timed Events
JavaScript can asynchronously call functions (so that it doesn't have to wait for a response) Not everything that happens on your web page necessarily happens in direct response to an action ... Read More

Sunday April 6, 2008 | permalink | comments (0)
Labelling New Entries on Your Page
You can make it easier for people who keep coming back to your site by identifying those things that are new since they last visited. Many people label the new entries ... Read More

Saturday April 5, 2008 | permalink | comments (0)
Bitwise Operators
JavaScript is good at handling both bits and bytes. The need for being able to access individual bits within a byte is not so important these days with the relatively huge ... Read More

Friday April 4, 2008 | permalink | comments (0)
Moving JavaScript out of the Web Page
Experienced JavaScript programmers sometimes forget how even simple tasks can be confusing for newcomers. Anyone who has been writing JavaScript for a while knows exactly how to go about extracting an ... Read More

Thursday April 3, 2008 | permalink | comments (0)
Response Type
Ajax has special processing available if the response is XML In the seventh Ajax tutorial we look at the two different response types (XML and plain text) that can be returned ... Read More

Wednesday April 2, 2008 | permalink | comments (0)
Ordered Dropdowns
JavaScript can bring order out of chaos Sometimes you want your visitors to select several entries from a list, perhaps even all of the entries in the list, and you need ... Read More

Tuesday April 1, 2008 | permalink | comments (0)

Email to a Friend

Display Latest Headlines | | | Read Archives

powered by WordPress

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.