We’ve touched upon the basic elements of form validation and error messages in part 1 of this series, which outlines a relatively static method identifying errors and validating a form. In this edition we are going to make the elements we began with more dynamic and reduce the amount of script required to do so using arrays.
If you’re still using arrays and text files to load content, it’s time to upgrade.
With XML, you can condense a whole mess of seemingly unrelated information into a well organized and easy to read file. Today we’ll be looking at how to take advantage of this with Flex 3. This tutorial will teach how to load an external XML file into Flex and then filter the results into labels.
“I want a website. It will be cutting edge visually impressive. It will have a wealth of information available. All of our brochures, a full directory of employees, and a shopping cart. I don’t want it the user to have to scroll all over the place though!”
Ever hear this from a client describing their vision? Somewhere along the line having to scroll for information started to bother people. Scrolling isn’t the make or break of a page. Use it to your advantage, and you’ll have a site that seems almost intuitive.
Photo by everdred
Having trouble finding an inspirational color scheme? Friday color schemes will aim to fix that! Every week we’ll pick out a topic and build color schemes out of it to inspire. This round of inspiration is from fountains around the world.
Photos are all found on Flickr, and color schemes are all available to download on COLOURlovers.
It sounds a lot like a buzzword for developers, but what is data binding exactly? Is it even useful? In short, absolutely. Chances are you’ll be working with some sort of data in Flex. With data bindings, a developer can link data automatically between sources and targets. Still confused? Imagine a label set to automatically display the value of a selected button. It’s a simple concept that has an incredible amount of usefulness when building RIA’s. On second thought, let’s just build it.
Having a site visitor fill out a form is the primary way to gather information. Forms are the main line of communication with anyone that visits your site, so taking the time to make sure users fill them out correctly is key. Using PHP, we are able to ensure that all fields are properly filled out before submission, with required adjustments being called to attention through the use of error messages.
Centering a website is a key part of many CSS layouts. While there are many ways to do it in a variety of situations, the following is an explanation that is purely CSS, avoids messing with percentages, and is compatible with all modern browsers.