Skip to main content
Engineering LibreTexts

3: JavaScript and Processing a Simple form Processing

  • Page ID
    27551
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    This chapter will cover JavaScript with the goal of processing the simple form created in Chapter 2. Programmers from other languages will recognize most of the material in this chapter, as procedural programming in JavaScript is the similar to other languages C derived languages. Even the material on events, lambda functions, IIFE, and functional programming will have analogues to concepts that students will have already studied.

    The chapter will also include an introduction to JQuery, mostly to replace functions like document.getElementById or to introduce the $(document).ready() function. The goal in this chapter is to treat JQuery as a way to short cut examples. The more important reason to introduce JQuery is it is often treated as if it is part of the base JavaScript language. When looking for JavaScript examples online the examples will use JQuery in the examples and to understand these examples some simple JQuery knowledge is useful.

    The goal of this chapter is to become familiar with basic JavaScript syntax and to begin learning how to structure programs in JavaScript. Future chapters will continue to cover JavaScript objects and how to abstract applications that will be used in the mapping applications this book will present.


    This page titled 3: JavaScript and Processing a Simple form Processing is shared under a CC BY license and was authored, remixed, and/or curated by Charles W. Kann III.

    • Was this article helpful?