Another “Modern JavaScript: Develop and Design” Update

December 8, 2011 — 13 Comments

I last posted an update on my forthcoming JavaScript book, Modern JavaScript: Develop and Design, just over two months ago, so it’s high time I posted another update. Of course, I’ve been working so hard on the book that I haven’t done a very good job of putting out regular, good blog posts in the interim. Still, here’s where things stand…

The good news is that I just submitted the first draft of Chapter 10, “Working with Forms.” Although forms have been used to some degree since Chapter 2, “JavaScript in Action,” this chapter rounds out the knowledge of forms with respect to JavaScript. The chapter worked out much like a “recipe” type of chapter, with discussions of common tasks plus specific code for performing that task. Some of the examples are:

  • Inline error messages
  • Tooltips
  • Creating a master checkbox (that toggles a group of other checkboxes)
  • Linked select menus
  • Enabling/disabling submit buttons

The chapter also covers regular expressions, with a focus on validation. Because  regular expressions are complicated, and there’s already a lot of material in the book, I tried to keep the coverage as accessible as possible, without going into too much high-end stuff. The chapter ends with a good and realistic form validation example that combines most of the above.

Before Chapter 10, I finished Chapter 9, “JavaScript and the Browser,” and Chapter 8, “Event Handling”. Chapter 9 in particular was quite long. But now that I’ve covered events in detail, plus DOM manipulation, CSS interactions, and so forth, the possibilities have greatly expanded when it comes to what examples I can use, which makes writing the book easier and more rewarding. By this point in the book, the reader has also created a couple of mini-libraries that make things like event handler registration easy and cross-browser compliant. The book is continuing to emphasize–and demonstrate–progressive enhancement along the way.

I’ve also done the rewrites on the first four chapters and have seen the PDF layouts for the first two. This is my first full-color book and it looks great. Unfortunately, as seems to always happen with me, the page counts are coming back quite high. Between that and how grossly behind schedule I am, I’ll have to make some decisions as to what to keep in Part 3 of the book. Part 2 of the book, which is the meat, has two more chapters remaining: Ajax (Chapter 11) and Debugging and Error Handling (12). Part 3 of the book will definitely have one chapter on frameworks and another on advanced JavaScript programming. There will be at least one more chapter, but I’m not sure what that will be. Possible candidates are:

  • HTML5
  • Mobile Development
  • An example chapter of PHP and JavaScript

I’ve already decided not to do the server-side JavaScript chapter, as I don’t think that many people are doing server-side JavaScript yet, at least not among those that would be reading this book.

As always, if there’s not space to put something in the book, I’ll probably end up writing about those subjects here, or as articles elsewhere (so you’ll still get all the important content, you just won’t have to pay for it).

So that’s where things stand. Thanks to everyone for their interest in the book. Now I’m off to write Chapter 11!

If you enjoyed this post, then please consider following me using your favorite social media, the RSS feed, and/or by subscribing to my newsletter. Or go crazy, and buy one or more of my books . Thanks!

13 responses to Another “Modern JavaScript: Develop and Design” Update

  1. Hi Larry,
    I’m very pleased to know that your JavaScript book is continuously moving forward to its target.

    I would like to read :An example chapter of PHP and JavaScript in Part 3. And I hope to see Mobile Development on your next edition as a reader who can do a standard website by Php programming.

  2. Happy writing of the Ajax chapter! My vote for Part 3 would have to go to a chapter on JavaScript and HTML5, but I realize that everyone will have a different opinion on this. Just wanted to weigh in!

  3. Sounds like things are really firing along. Of mobile JS, HTML 5, and PHP/JS synergy, I for one would like to see more documentation out there for working with dynamic PHP variables in JS scripts. I think all the topics are important ones. Though I think the synergy between PHP and JS is important, potentially complicated and under documented.

    • Thanks, Brandon, for the input. You make a good point about there not being much writing on JS and PHP together. I’m leaning towards doing that chapter.

  4. I think the HTML5 chapter would benefit a wider range of people. Mobile Development and Server side seem like the next step. Perhaps save these for an advanced JS book ;)

  5. I’m more for the Mobile Development chapter than the HTML5 chapter. The market is already so saturated in HTML5 books and it’s kind of hilarious to see the ambiguity of the content of these books as the “meaning” of HTML5 has evolved in the last 1.5 years (ie. some authors focus entirely on the elements of HTML5 and others focus on the HTML5 APIs which use Javascript which in my opinion is what HTML5 is about).

    It would be refreshing to see some good content on Mobile development using Javascript. If you go to Amazon and search HTML5 in books hundreds of results come up. As for Mobile development with JS, not so many.

    • Thanks, Richard, for the input. I’m still debating this. I introduce a few key parts of HTML5 in Chapter 2, in particular some of the form elements. I envisioned the dedicated chapter on HTML5 to be on the APIs. Right now I’m not sure if either the HTML5 or mobile chapter will make it in. Thanks again!

  6. Hi Larry,

    I think your readers would probably benefit more from PHP and JS example. Despite probably being the least cutting edge. But mobile JavaScript I am wondering how much one would have to include for it to be truly beneficial, the same for HTML5 too.

    • Thanks, Jonathon. The example chapters in my PHP books have been popular, and I’m starting to lean towards doing one of those here. I have to do the frameworks chapter and the advanced one, although I don’t need to make the advance one too advanced. I think I’ll do one more beyond that, possibly the PHP & JS example. Thanks for the input!

Trackbacks and Pingbacks:

  1. What Is Larry Thinking? #48 => The Philosophy Issue – Larry Ullman - December 16, 2011

    […] on the JavaScript book at the end of this newsletter, but for a more detailed update status, see this recent blog post.Q&A => Should one enforce business ethics?Richard wrote me some time ago, asking about […]

Comments are great, but I'd strongly prefer any requests for assistance get made in the support forums. Thanks!