eg-259:lecture7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eg-259:lecture7 [2012/02/22 12:06] – [HTML5 Version of the Phone Number Validator] eechris | eg-259:lecture7 [2013/02/12 19:27] – [Text Processing with Regular Expressions] eechris | ||
---|---|---|---|
Line 9: | Line 9: | ||
====== Text Processing with Regular Expressions ====== | ====== Text Processing with Regular Expressions ====== | ||
- | **Contact Hour 10**: To be discussed on Tuesday | + | **Contact Hour 10**: To be discussed on Tuesday |
**Lecturer**: | **Lecturer**: | ||
Line 267: | Line 267: | ||
* avoids a trip to server that would result in an error page | * avoids a trip to server that would result in an error page | ||
* error handling is kept local | * error handling is kept local | ||
- | * usually triggered by // | + | * usually triggered by // |
* error message generated locally by writing into document object. | * error message generated locally by writing into document object. | ||
* This example defines a function that could be used in a registration page to check that a phone number is valid (using US conventions!) HTML5 Markup: [[/ | * This example defines a function that could be used in a registration page to check that a phone number is valid (using US conventions!) HTML5 Markup: [[/ | ||
Line 287: | Line 287: | ||
</ | </ | ||
< | < | ||
+ | < | ||
: | : | ||
- | <form id=" | + | <form id=" |
+ | onsubmit=" | ||
<label for=" | <label for=" | ||
- | <input id=" | + | <input id=" |
- | | + | title=" |
- | <input type=" | + | <input type=" |
</ | </ | ||
| | ||
- | <!-- Best practice guidelines suggest that you load scripts | + | <!-- Best practice guidelines suggest that you load scripts |
<script src=" | <script src=" | ||
</ | </ |
eg-259/lecture7.txt · Last modified: 2013/02/19 12:29 by eechris