Posted on June 17th, 2008 by JJS.

Free eMail Updates -

Like What You Read? Show Some Love - Digg it!

JavaScript Forms- Lesson 3

JavaScript Forms

JavaScript Forms
Being able to successful create JavaScript forms isn’t a difficult process but it may be one that you are unsure about. The common misconception that creating web pages takes an expert computer programmer just isn’t true. While you will use HTML to create JavaScript, you need to realize that they aren’t exactly the same.

With JavaScript you will have several different handlers that the user can click on to perform the necessary actions. This is very important because the easier your web pages are to navigate the more interested consumers will be in them. Some people are very new to using the internet and others are experts so you want to be able to appeal to the level of skill of everyone.

The various JavaScript forms that you create will have coding inserted behind the scenes where the consumer can’t see them. For example your site may have an opt in form for the user to complete. At the bottom they simply click on the form that says SUBMIT. The codes you have entered behind the scenes work to process the information that they have provided.

In order to have a successful JavaScript form called a widget, you need to have several elements in place. They include the form name, the action you want the user to be able to perform, a method for that information to be processed, and a value for each of the JavaScript forms.

There are many different ways in which you can set up JavaScript forms on your web pages. While a simple box that they click is the easiest you may want to offer a radio box or drop down menu if there is more than one option they can select from. You can also offer a text box if you want the user to be able to type in various information.

Before you put your web pages up for consumers to look at, you want to take the time to validate all of the information you have placed into the various JavaScript forms. The goal is for everything to work exactly as it should on the first try. If you come across JavaScript errors you should check each field of entry again. It is going to take some time to master JavaScript but once you do it will become one of the most valuable tools you have to offer.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Slashdot
  • Netvouz
  • description
  • ThisNext
  • MisterWong
  • Wists
  • E-mail this story to a friend!
  • Facebook
  • Google
  • Live
  • Print this article!
  • Propeller
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!


Like What You Read? Show Some Love - Digg it!
Posted In - JavaScript

3 Responses to “JavaScript Forms”

  1. javascript tutorial Says:

    […] are unsure about. The common misconception that creating web pages takes an expert computer prograhttp://www.designersmind.com/articles/javascript/javascript-forms/How to radicalise our universities Malaysia TodayOur students are being treated like extensions of […]

  2. SEO Web Design - Mike Says:

    What are your thoughts on the trend I’ve been noticing which is to utilize JS for validation only and parse the rest of the form in PHP. I just don’t see JS forms being used much these days and wonder why. Is it convenience?

    Looking forward to your thoughts.
    Mike

  3. Seth Says:

    Well, it might be that at large people are becoming more capable of having faster and faster internet, so client-side parsing isn’t *as* big an issue since more people have faster internet than, say, Dial-Up, nowadays and can handle more server-side. I use both, actually, depending on the type of information and/or how I’m gathering the information and where it’s going. It’s also more safe to have twice as much validation, but in most cases that is unnecessary and probably overkill. But then again, it goes back, at least for me, to this issue: Are we designing sites for all visitors, including those with not-so-good internet, or are we making ourselves a part of the stimulus to “force” more and more people to upgrade to better internet? Are we sacrificing service for a better and simpler future? And those were my thoughts.

Leave a Reply