aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Does Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Does "Pro CSS and HTML" cover JS?" Watch "Does "Pro CSS and HTML" cover JS?" New topic
Author

Does "Pro CSS and HTML" cover JS?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Does this book also covers some Javascript?

[Edit to provide meaningful title - Dave]
[ October 09, 2007: Message edited by: David O'Meara ]

SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Jothi,

no: Pro HTML and CSS does not cover Javascript.

(funny thing: Pro Javascript does not cover HTML or CSS)

Herman
Yavor lvanov
Greenhorn

Joined: Mar 15, 2007
Posts: 14
Dear Sir,

Does the book cover techniques of using CSS for dynamically generating HTML along with technologies such as JSP?

Thank you!
Mike Bowers
Author
Ranch Hand

Joined: Oct 08, 2007
Posts: 42
Does "Pro CSS and HTML Design Patterns" cover JavaScript?

Pro CSS and HTML Design Patterns does not teach JavaScript and it is not about JavaScript, but it does contain a few design patterns that use JavaScript. The purpose of these patterns is to show best practices for using JavaScript to style XHTML using CSS.

One best practice for using JavaScript with CSS is to use JavaScript to modify the class attributes of an element to dynamically change how the element is styled. This is the best way for JavaScript to modify the style of an element: CSS defines the style through a class and JavaScript dynamically assigns classes to elements.

As a complement to the best practice of using JavaScript to modify only the class attributes of elements, my book advocates selecting XHTML elements in JavaScript using the CSS selector syntax. This approach allows you to use the same CSS selectors to select elements in CSS and in JavaScript. Using the same selector syntax makes CSS and JavaScript code more intuitive and more maintainable. You have to read Chapter 17 of my book to see how cool this is.

To select elements in JavaScript using CSS selector syntax, you need a JavaScript library. I provide just such a library in my book. It is modular and extensible, and it makes it easy to dynamically style elements using this technique.

Lastly, I show you in the book how to use JavaScript without inserting a single line of JavaScript into the body of an HTML document! This is really cool stuff and makes for a very clean separation of design (CSS), structure (XHTML), and interaction (JavaScript)!
Mike Bowers
Author
Ranch Hand

Joined: Oct 08, 2007
Posts: 42
Does "Pro CSS and HTML Design Patterns" cover ASP, JSP, PHP, or other server-side technologies?

Pro CSS and HTML Design Patterns focuses on how to create an XHTML document and style it using CSS. It doesn't cover server-side technologies like ASP, JSP, and PHP.

Nonetheless, any server-side technology generates XHTML and CSS. Knowing the best ways to do this is a critical part of designing a server-generated web site. Thus, I highly recommend my book to all server-side developers.

One unique feature of my book is that it is written for developers who love to code (because I'm just such a developer). There are not a lot of CSS and XHTML books written for developers because the CSS market focuses on non-technical designers. My book is written for developers because I was unhappy with the lack of good, solid, technical books on CSS!

By using my book, you will greatly increase your productivity. You will be able to simplify the XHTML you generate on the server. You will be able to leverage CSS to style your pages. And your web pages will display correctly in all web browsers without having to serve up different pages for different browsers. For example, using the techniques in my book, you can restyle an entire web site by changing a single style sheet. You will be able to achieve complete independence of content and style using the design patterns in my book.

Most importantly, my book frees you from the nightmare of trial-and-error CSS design! You will be surprised at how easy styling a web page can be once you learn my design patterns.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Thanks for the insight into the book!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does "Pro CSS and HTML" cover JS?
 
Similar Threads
Jboss in Action question: migration from other Application Servers
How low level do YOU code ?
WA #2 ..... word association
Need help understanding generics.
Barn Burning Patterns