Javascript events - a good example
Archive - Originally posted on "The Horse's Mouth" - 2005-12-09 06:34:44 - Graham EllisComplete a form, submit it to the server, get the response page back. Typical web form filling which I sometimes describe as "batchlets" - almost back to the old style batch processing where you make up a complete job and submit it exactly has was doing in the 1970s - except that now it takes 120 ms to get a response rather than 120 minutes.
If you want local validation of your data before you submit it to the server, you need to use a client side (browser embedded) technology such as Javascript. Within your Javascript to can program events to describe actions which may (or may not) be purely local to the browser before the completed batchlet is submitted to the server.
I've just put a working example you can try showing javascript events and the complete source code onto our server. There's a further library of javascript demos too.
I love the Open Source / training world - networking, working with people, and passing back and forth great examples. And so big thanks to Keith Lovern for the today's example - amended and reproduced here with his kind permission.