my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Question about DOM scripting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Question about DOM scripting" Watch "Question about DOM scripting" New topic
Author

Question about DOM scripting

Lata Sukh
Greenhorn

Joined: Jan 25, 2007
Posts: 2
Hello Frank,
I am kind of new to Ajax, have tried out a few examples using the Prototype library.
I might need to use Ajax in a new application. Would this be a good book for me to read?
And what exactly do you mean by DOM scripting? I do understand DOM because I have worked with XML in the past..but wondering what it means in this context.
Thanks,
Lata
Frank Zammetti
Ranch Hand

Joined: Dec 16, 2004
Posts: 136
Hi Lata,

I would say that if you have a specific focus on AJAX, then my first book, Practical AJAX Projects with Java Technology, might be a better fit, although as the title states, it's geared towards Java developers. I think if you aren't working in Java you could still benefit from it, but it might be a little harder to follow.

The current book, Practical JavaScript, DOM Scriptins and Ajax Projects, isn't Java-specific, but also isn't AJAX-specific... AJAX is certainly covered, but it isn't the central focus, client-side development in general is (there's almost no server-side code in the entire book, which makes it simultaneously very interesting and perhaps not as much for some).

One thing to note is that neither book is meant for beginners, although frankly between you, me and everyone else reading, I suspect a motivated beginner could pick up either book and do OK with them. In fact, I know of a number of people here at work that read the AJAX book who had very little experience with client-side development and got a lot out of it.

What is DOM scripting? Well, have you ever heard the term DHTML? It's the same thing! DOM scripting is kind of the marketing-friendly way to say it these days. The problem is that DHTML has been around for years, and for a lot of those years, it was being abused. Remember that whatever you call it, it basically just means modifying the existing page on the client by manipulating the DOM via Javascript. People used to do this in ways that made pages pretty bad, i.e., lots of superfluous animations, things that didn't work cross-browser, etc. So, DHTML got a bad reputation. Now that AJAX is the hot thing, which means client-side coding is too, we can't use the term DHTML because it has a bad connotation, and certainly selling a book with DHTML in the title tends to not go over as well So, that's what DOM scripting is all about: it sells better, and people who experienced the early years of DHTML don't get a bad feeling in their gut when they hear it


-- <br />Frank W. Zammetti<br />Founder and Chief Software Architect<br />Omnytex Technologies<br /><a href="http://www.omnytex.com" target="_blank" rel="nofollow">http://www.omnytex.com</a><br />AIM/Yahoo: fzammetti<br />MSN: fzammetti@hotmail.com<br />Author of "Practical Ajax Projects With Java Technology"<br /> (2006, Apress, ISBN 1-59059-695-1)<br />and "JavaScript, DOM Scripting and Ajax Projects"<br /> (2007, Apress, ISBN 1-59059-816-4)<br />Java Web Parts - <a href="http://javawebparts.sourceforge.net" target="_blank" rel="nofollow">http://javawebparts.sourceforge.net</a><br /> Supplying the wheel, so you don't have to reinvent it!
Lata Sukh
Greenhorn

Joined: Jan 25, 2007
Posts: 2
Thanks Frank, that certainly helps. Your first book sounds like the one I need to read, as I have java server side experience too..
Lata
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about DOM scripting