Posted on January 2nd, 2010 1 comment
- Very well written and explained : technical concepts are vulgarised and examples are very relevant (mini websites using all the concepts that were teached).
- As the book was written primarily for web designers, it might leave some developers thirsty for more. But anyway, the more important stuff is in the book so that makes the deal. Just keep in mind that you won’t go in deep technical details in this book.
Posted on April 24th, 2009 1 comment
- It’s not a standard (it was originally introduced by Microsoft some time ago)
- Maintenance is way much complicated if you have to dig into a complex HTML string than just inserting your line between the right CreateElement() methods of the DOM
// Note how it’s easy with innerHTML to introduce errors
// In this case, the div tag is not properly closed
document.body.innerHTML = “<div>Some text</div”;
// Now with the DOM, in a cleaner and more secure way
var elt = document.createElement(“div”);
var txt = document.createTextNode(“Some text”);
But… innerHTML isn’t completely bad though. In fact, it’s way faster than the DOM and is pretty well supported by browsers. So what should you do then ? There are loads of discussions on that topic on the web. In my opinion, you should always strive to respect the standards, which are primordial when you’re working for the web, but this must not slow down productivity either (by making some libraries or helpers for example). Now the big question : What are my alternatives to working with innerHTML ? This very interesting article will perfectly answer to that.
Posted on March 4th, 2009 2 comments
Ajax tête la première, or the equivalent in english Ajax head first, introduces you to dynamic and asynchronous UI development. In this book, you will not only learn how Ajax works (XmlHttp, aynchronous requests, callbacks, …) but also how to make effective use of it into your webpages with DOM, JSON, XML, etc… Through multiple application examples, the authors let you put into practise the theory following an interesting incremental approach. Starting with a very basic application, you will add blocks that will transform it into a reactive and modern one, with security issues - such as Sql injection - kept in mind. Below the pros and cons of this book :
- Very clear and well explained book (head first collection reputation)
- Iterative approach : introduces basic concepts, then new ones through refactoring of previous code examples
- Originality of examples : surf shop, the chaos project, …
- Interesting chapter about the Document Object Model (DOM)
- Also deals with security issues (Sql injection, …)
- I found the beginning too long (in fact too easy)
- Some minor errors in the book, including technical ones