marcwolf
Posts: 361
|
| Posted: 07/24/2008, 3:35 PM |
|
Hi Folks
I have been reading an excellent Javascript resource called PPK on Javascript.
His webpage is here http://www.quirksmode.org/about/intro.html
This book is very insightful in the was it handles Javascript, and also I have found it very good for working in CodeCharge environments.
One of the biggest dificulties I have found is that CCS writes the HTML and the Javscript hooks, and it is often difficult to work on them afterwards without breaking CCS (usually in very advanced situation)
Peter-Paul shows some nice ways to add on functionality to controls (like onclicks, onblur) without modifying the originally created Javascript/HTML.
He show how to add to an already existing event, and also how to detect what element called the event.
This goes a long way in getting around the (this) issue that sometime comes up when adding new functionality (See his book for a full explanation)
You can purchase a PDF version of the book online from Peachpit, or it is also available on Safari Online.
Oh - if you do not know Safari it is a online library where you can search and book out books onto a online bookshelf. They have a lot of titles form most of the major publishers and are constantly adding new ones.
Cost About $10 US pm, and you can have upto 5 books per month. There are also discounts if you wish to purchase the books in print form too.
Take Care
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
TonyReid
Posts: 159
|
| Posted: 07/25/2008, 4:22 AM |
|
Thanks for the headsup on this book.
I've just ordered it from Amazon :)
_________________
-----------
PHP/indy Game Developer - http://www.AbsoluteBreeze.co.uk |
 |
 |
Oper
Posts: 1195
|
| Posted: 07/28/2008, 9:58 AM |
|
Thank for sharing dave.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
TonyReid
Posts: 159
|
| Posted: 07/29/2008, 3:48 AM |
|
I have only read the first two chapters - and it has already expanded my understanding.
Well worth the money :)
_________________
-----------
PHP/indy Game Developer - http://www.AbsoluteBreeze.co.uk |
 |
 |
marcwolf
Posts: 361
|
| Posted: 07/29/2008, 8:56 PM |
|
The area's I found very useful was the chapter on Events, followed by the BOM and the DOM.
I recently had a problem where the user wanted a little 'field changed' notifier.
Previously I would have had to add ID's, to all of the fields, and then add an 'onchange' event to everything.
With the techniques in the book I was able to parse the form to get all of the inputs, and then programtically add the Onchange events - including those elements that already had onchange used (it just added the new function after the existing one)
All without changing ANY of the HTML code
So with about 15 lines of Javascript code I was able to create the support routines, and one line of code for each form it worked.
Take Care
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
ReneS
Posts: 225
|
| Posted: 07/30/2008, 1:05 PM |
|
Written by a dutchman, has to be good
|
 |
 |
marcwolf
Posts: 361
|
| Posted: 07/30/2008, 7:15 PM |
|
But if 2 dutchmen write it - does that mean that it is Double Dutch (Ducks and runs!!!!! )
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
|