Description
What you need to know and how to do itBrilliant guides allow you to find the information that you need easily and without fuss. Using a highly visual, step-by-step approach, Brilliant books will solve your technology problems and guide you through essential tasks, providing you with exactly what you need to know, just when you really need it.
Spend less time reading and more time doing with a visual step-by-step approach to JavaScript programming
Brilliant JavaScript provides the quick, easy-to-access information that you need...
* Accessible full colour design throughout
* Detailed index to help you find exactly what you need to know
* Practical tasks presented on one or two pages
* Numbered steps guide you through each task or problem
* Numerous screenshots illustrate each step
* "See Also ..." boxes point you to related tasks and information in the book
* "Did you know?..." sections alert you to relevant expert tips, tricks and advice
* Troubleshooting guide to help you sort out most common problems and queries
Brilliant JavaScript will give you a solid grounding how to use basic JavaScript programming to improve the functionality and design of your web pages, showing you how to...
· Write and test basic scripts
· Get started with text and strings
· Work with numbers and operators
· Calculate dates and times on your web pages
· Create, sort and combine arrays
· Understand and employ validation techniques
· Apply JavaScript actions
· Enhance and personalise your web pages
· Get to grips with text effects
· Work with images and rollovers
· Use windows, pages, popups and prompts
About the Author
Ken Bluttman is an experienced programmer and technical writer who has variously worked as a database developer and DBA, as a project manager and trainer, and, of course, as rolled-up sleeves, grinding-out-the-code programmer.
CONTENTS:
1. Getting started with JavaScript
Write a basic script
Place your script in the head section
Place JavaScript in the web page body
Use an external JavaScript file
New concepts
Test a condition to determine the output
How to use conditional testing
Getty loopy
Use a loop to run repetitive actions
Break out of a loop
Debugging JavaScript
Understand the difference between comparison and assignment
2. Working with text
Typical text applications
Count the characters in a text string
Something to consider
Get a part of a text string
Find where a string starts inside a larger string
Out with the old, in with the new
Combining text
Breaking up is easy to do
3. Working with numbers and mathematics
Operate the operators
Basic maths
Following operator order
Rounding it out
Finding the lowest and highest values
Getting powered up
Random number generation
4. Calculating dates and times
What day and time is it?
Working with the month, day and year
Right on time
Getting granular with milliseconds
Counting elapsed days
Calculating the number of days till a future date
5. Getting organised with arrays
Creating an array
Working with array elements
Sorting an array
Combining arrays
Multidimensional arrays
6. Validation
Basic text entry validation
Validating an email address
Validating radio buttons and check boxes
Validating dates
Further validation issues
7. Applying JavaScript actions
Events are always happening
Update one select list based upon the selection in a different select list
Navigate to another website from making a list selection
Show or hide part of a page
Smart entry
Highlight where the entry is going
8. Enhancing the Web page
Personalisation
Keeping track of time spent on a web page
Providing a print button
Providing font resizing
Controlling page colours
9. Working with text effects
Stretching and contracting text
Scrolling text in the title bar
Whatever happened to scrolling in the status bar
Scrolling text on a button
Displaying text, typewriter style
Generating random text
10. Working with images
Preloading images
Image rollovers
Showcase photographs in a marquee
Zooming in on an image
11. Windows, pages, popups and prompts
Writing content to the browser
Alerts, prompts and confirms
Opening windows
Opening a new blank window
Planning for different screen sizes
12. Fancy and fun animation
Page transitions
Mouse trails
Bouncing a ball
Combining transitions and rollovers
13. Getting to know DOM (the Document Object Model)
A bit of DOM
Understanding the relationships of elements
Using the DOM to change elements
14. Using Ajax for fast server interaction
Saving page update time with Ajax
Using Ajax to return filtered data
15. Security
Disabling the right mouse button
Same origin policy
Keeping your site out of the frame of another site
Making your code unreadable
16. A roundup of advanced techniques
Getting information about the browser and the screen
Using an image map to control page visibility
Catching errors
Using a JavaScript library
Jargon buster
Troubleshooting guide
Published
29 Dec 2008
Publisher
PRENTICE-HALL
ISBN
9780273721536
Pages
276




Static Book Details Index Page - Click Here to go to Computer Manuals Website