Pro JavaScript Development by Den Odell
Author:Den Odell
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA
Figure 9-1.The final page we’re building represents a newsletter sign-up form, which will only submit if the e-mail address provided is in a valid format
Before we write any JavaScript code, we’ll download a copy of RequireJS from the project homepage at http://bit.ly/require_dl . At the time of writing, the current version of this library is 2.1.9, and it’s supported in all the major web browsers all the way back to Internet Explorer 6, Firefox 2, Safari 3.2, Chrome 3, and Opera 10.
Now, before we add RequireJS to our page, we need to review which JavaScript files we’re going to need for our application and organize them into an appropriate folder structure. We’ll start with our main application script file, which, using jQuery, will listen for the submit event on the HTML form and perform form validation when this occurs, only allowing the form to continue submitting if there are no errors. We will therefore have three JavaScript files in addition to the RequireJS library, as shown in Table 9-1.
Table 9-1.The three JavaScript files used in our project, in addition to RequireJS
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12571)
Hello! Python by Anthony Briggs(9916)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9779)
Dependency Injection in .NET by Mark Seemann(9340)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8300)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7084)
Microservices with Go by Alexander Shuiskov(6854)
Practical Design Patterns for Java Developers by Miroslav Wengner(6772)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6713)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6419)
Angular Projects - Third Edition by Aristeidis Bampakos(6118)
The Art of Crafting User Stories by The Art of Crafting User Stories(5647)
NetSuite for Consultants - Second Edition by Peter Ries(5580)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5385)
Kotlin in Action by Dmitry Jemerov(5065)
