{"id":48,"date":"2005-02-23T02:47:44","date_gmt":"2005-02-23T07:47:44","guid":{"rendered":"http:\/\/www.killersites.com\/blog\/?p=48"},"modified":"2017-02-23T10:08:16","modified_gmt":"2017-02-23T15:08:16","slug":"dom-scripting-book-review","status":"publish","type":"post","link":"https:\/\/www.killersites.com\/blog\/2005\/dom-scripting-book-review\/","title":{"rendered":"Book Review:  Dom Scripting"},"content":{"rendered":"<p>As the title suggest, this books teaches modern DOM scripting techniques.<\/p>\n<p><strong>What is DOM scripting?<\/strong><\/p>\n<p>DOM scripting is using JavaScript, CSS and the DOM to manipulate what is displayed in a web page.  The &#8216;DOM&#8217; is the acronym for:<\/p>\n<p><strong>D<\/strong>ocument <strong>O<\/strong>bject <strong>M<\/strong>odel<\/p>\n<p>This essentially is just a &#8216;map&#8217; of a web page&#8217;s structure &#8211; roughly speaking.<\/p>\n<p><iframe src=\"http:\/\/rcm.amazon.com\/e\/cm?t=wwwmontrealma-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1590595335&#038;=1&#038;fc1=000000&#038;IS2=1&#038;&#108;&#116;1=_blank&#038;lc1=0000ff&#038;bc1=000000&#038;bg1=ffffff&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n<p>You can do all kinds of cool things with the DOM (with the help of JavaScript,)  &#8230; for example:<\/p>\n<ul>\n<li>Create dynamic menu&#8217;s.<\/li>\n<li>Show\/hide parts of the page based on a mouse click or any other user action.<\/li>\n<li>Connect to the server in the background and load new content into the page without having to refresh the page &#8211; commonly called AJAX these days.<\/li>\n<li>Add new HTML or CSS to the page, on-the-fly.<\/li>\n<\/ul>\n<p><strong>What you need to know to read this book: <\/strong><\/p>\n<p>You need to be comfortable with HTML and CSS but you probably can get by without any programming experience. I say &#8216;probably&#8217; because there are some points at the beginning where the basics MAY be a little unclear for some.<\/p>\n<p><strong>Should you get this book?<\/strong><\/p>\n<p>The book is very good and worth getting. The author has a clear and concise way of presenting the subject and I really enjoyed the read &#8230; not boring at all.<\/p>\n<p>Unlike many JavaScript books out there, &#8216;Dom Scripting&#8217; does a great job in presenting modern methods that include:<\/p>\n<ul>\n<li>Keeping behaviour separate from structure &#8211; Java nerds would call these &#8216;listeners&#8217;.<\/li>\n<li>How to use JavaScript in such a way that it degrades gracefully and is accessible.<\/li>\n<\/ul>\n<p><strong>Final comments:<\/strong><\/p>\n<p>While learning the concepts of DOM scripting, you will gain a much greater understanding of the &#8216;framework&#8217; of a web page &#8230; you will begin to understand things about HTML\/XHTML and CSS that you could not otherwise.<\/p>\n<p>So even you are not too keen on actually doing any DOM scripting, I still highly recommend this book for these reasons.<\/p>\n<p>&#8211; <\/p>\n<p>Stefan Mischook<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DOM scripting is using JavaScript, CSS and the DOM to manipulate what is displayed in a web page.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/48"}],"collection":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":2,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":4790,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions\/4790"}],"wp:attachment":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}