JavaScript Coder

    jQuery disable button on click to prevent multiple form submits

    The default behavior of a submit button obvious – clicking it submits the contents of a form to the server. This seems quite straightforward. So, what could possibly go wrong? Well, what if the user double clicks on the submit button rather than clicking it just the once? The contents of the form will be submitted twice. If there is no response to indicate the form was submitted, some users will click again and the form will get submitted again.

    Continue Reading →

    Understanding JavaScript Variables

    The variable is one of the most fundamental concepts in any programming language. The first step towards becoming proficient in JavaScript is having a good understanding of variables. Variables can be a little confusing, especially to newbie programmers. Even people who are familiar with variables from other programming languages may find JavaScript's take a little strange. The good news is that JavaScript variables are actually easy to understand. This tutorial is going to help you achieve just that.

    Continue Reading →

    Using Try…Catch in JavaScript

    Errors are almost inevitable in JavaScript programs. As a JavaScript developer, it is your responsibility to anticipate errors and handle them effectively. This will ultimately help you to create programs which are robust, reliable and efficient. One simple way of handling errors is through try…catch statements. A try…catch statement is a programming mechanism which enables you to test your code for possible errors, and carry out certain actions in case an error occurs.

    Continue Reading →

    A Modern Reintroduction To AJAX

    AJAX is one of the most interesting web development paradigms emerged a few years back(around 2005). Since the term was first coined,( here ) AJAX has become commonplace in almost all web applications. Overtime, Ajax got many manifestations and applications. Some of the interesting Ajax based implementations include ‘infinite’ scrolling, live validations of usernames, ‘auto-suggest’ boxes and so on. Ever since Ajax was introduced long back, the technology has evolved beyond its earlier definition.

    Continue Reading →

    How to Use the Dreamweaver Form Validation Feature

    Sometimes, you may feel frustrated when you look at the form submissions that you get from a web form and find out that the respondents did not fill in some crucial details. This calls for some details on the form to become mandatory to fill in. for example, a form that is used to subscribe visitors to regular newsletters via email will be of no use if the user does not enter their email address.

    Continue Reading →

    jQuery Popups

    JavaScript popups are handy to display help information or to zoom in an Image. There are different types of Popups. The first type is a new browser window opened using the window.open() function. Such types of Popup windows were overused and exploited by many websites during the earlier days of the web.This resulted in the later versions of browsers blocking popup windows. Eventually, popup windows became almost extinct now. Automatically opening popup windows is considered a very bad practice.

    Continue Reading →

    jQuery: applying selector within 'this'

    When you handle events for a particular element, it is often required to make a change only within children of the element. Here is how to do it. Suppose this is the HTML code <h2>Select the services you want:</h2> <ul id='services'> <li><img src='tick.gif'>Build a Website</li> <li><img src='tick.gif'>Page design</li> <li><img src='tick.gif'>Flash banners</li> <li><img src='tick.gif'>SEO</li></ul> </ul> When someone clicks on each of the service, the image is to toggle. Here is the jQuery code to do that

    Continue Reading →

    Doing real-time calculations in a form using JavaScript

    In this tutorial, we will learn how to perform calculations using JavaScript. It is quite often required to do calculations online in order forms, request quote forms and the like. This tutorial will show you how to use different form elements like drop-down list, radio button, check box and text box in a calculation. We will be using a ‘cake order form’ as an example. As the user makes selections in the form, the total price is calculated in real time.

    Continue Reading →

    A Form Design Software that is Quick, Easy and Simple.

    HTML form design can often turn to be a tedious task. First, you need to design the HTML page that contains the form using an HTML editor. Next, you have to create a set of input validations using JavaScript. The final step is to create a form processor script that collects the data submitted in the form, validates it again and then sends it as email/stores in database or a file.

    Continue Reading →

    How to make a web form and get it online quickly

    Coding a web form is a long, tedious process. However, there is an easier way. Using Simfatic Forms you can quickly create feature-rich web forms without coding. You just have to design the form using the visual editor; Simfatic Forms generates all the required code. You don't have to worry about coding HTML, CSS JavaScript or PHP. Even if you know coding, and do forms regularly, Simfatic Forms saves you all the time spent on coding and lets you focus on the form design.

    Continue Reading →