Dynamic HTML The Definitive Reference (2nd edition)
What's in the book?
The book is not an introduction to DHTML but it does have an 183-page section on Applying DHTML that covers not only the current state of the art but also gives clear guidance in making use of all the features. The guidance is of a good enough standard that a firm's Quality program could simply cite this book as the basis for the web development standards that a team adopts. Goodman makes it very clear that he is not going to discuss the DHTML that Navigator 4 introduced, the <layer> tag and JavaScript style rules, but points out that they are covered in the first edition should you really need to know.
The layout of the book is the same as the first edition, with the reference sections divided into HTML, DOM (Document Object Model), CSS (Cascading Style Sheet) and JavaScript. A new section for Events also makes an appearance. The reference sections on HTML and DOM have sub-sections that precede them on the shared attributes of all elements. These are particularly useful and I think should be committed to memory.
There is also a very curious Cross Reference section that has an HTML/XHTML attribute index and a DOM property, method and event handler index. It takes each HTML/XHTML attribute and shows which elements support it and then each DOM scriptable object property, method and event and which objects support it. I'll confess I've never had any call to use this section but I can see how it could come in handy -- and it hardly takes up much dead tree.
The upper limit of standards coverage is HTML 4.01, XHTML 1.1, CSS Level 2, DOM Level 2, and JavaScript (or ECMAScript) 1.5. The browsers considered are IE6 (Windows), IE 5.1 (Mac), Netscape Navigator 6 and 7 and Mozilla 1.0. Opera is also mentioned in the section on Applying DHTML in that it mostly follows the IE DOM. The timeline for any element can go back as far as HTML 3.2, Navigator 2 or IE 3.
As you would expect, there are some useful appendices: Color Names and RGB Values, which I expect to be using more now as sites are required to meet Accessibility guidelines; HTML Character Entities, for when you don't have a copy of Macromedia Dreamweaver or when your favourite HTML editor doesn't have a complete list; Keyboard Event Character Values, for your scripts when you want to catch all those key presses; Internet Explorer Commands, which along with the MSHTML.dll can allow the creation of a very neat content editor quite quickly and easily; and finally, an HTML/XHTML DTD Support cross-reference that may help catch validation errors as you move from an HTML 4.01 Transitional DTD to a full-on XHTML 1.0 Strict DTD.
What makes it worth having?The quality of Danny Goodman's writing is both technically accurate and easy to read. The clarity and lack of fluff is good, but there is no skimping on detail where such is needed to illuminate a point. Let's face it: web development is not as complex as most software engineering or systems development tasks, but it is a discipline with quite a wide base, reflected in the 1400 pages of this tome. I wouldn't trim any of it, however, and I expect that after about a year of use I will have referred to a good proportion of the contents. Take, for instance, Goodman's estimate that there are more than 15,000 unique instances of properties, methods, and event handlers supported by numerous document objects and you get an good impression of the size of the documentation required.
The book could be regarded as two books in one: There is the Applying DHTML book and the Reference book. The best things about the reference sections are the excellent descriptions, the clear little examples, and especially the quick summary of where you can expect these things to be supported. Referring to this book is the simplest way to avoid going down the proprietary browser extension cul de sac.
The Applying DHTML section is worth reading all the way through. It is great for getting yourself into the various technologies and seeing how they are meant to work. There are interesting points made on how each of the technologies are evolving. There's material contrasting the various DOM implementations and there are chapters on style sheets, positioning in CSS, making the content dynamic (of course, this is what DHTML is all about, after all) and scripting events.
There is a very useful cross-platform API for DHTML (which can be downloaded as a zip file along with the other examples from the book on O'Reilly's web site). I've used the version from the first edition quite a lot, and I've used the new version in my most recent work. It doesn't rely on browser version sniffing, but rather on object detection, which is explained with some examples, and can be easily extended to handle any DOM call you may wish to make. The API is especially useful for any CSS positioning tasks you may have. Goodman also goes over other strategies you can adopt to make your sites cross-platform, such as page branching, designing for a common denominator, and some other, neater, solutions.
There isn't anything on Accessibility other than a single paragraph drawing your attention to the Web Accessibility Initiative (WAI). DHTML and Accessibility could be considered inimical but that isn't the case and I'd perhaps have liked to see this elaborated on with some suggestions on how to achieve an Accessible site while still using DHTML. In practice, however, I've found it easy to meet the Priority 1 checkpoints (or A rating) set by the WAI even with a complete DHTML site so perhaps this is not really an issue.
I find this book really useful. I can't imagine any web developer doing without this book and managing to produce a good cross-platform solution, and I also can't imagine that developer needing any other texts on any of the technologies covered here. I certainly don't have any others on my desk today.
The O'Reilly web site has a complete Table of Contents available. You can purchase Dynamic HTML The Definitive Reference from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
At subway, you get a sub prepared anyway you like, by the friendly, efficient staff. Choose from mouth-watering veggies, succulent meats and cheeses, and a variety of freshly-baked bread. Why not stop in today and pick up some subs for the whole family to enjoy. I suggest the Italian BMT, piled high with genoa salami, pepperoni, ham, and provolone cheese. Top it with lettuce, tomato, onion, and pickles, a few spritzes of italian dressing, and a dash of salt and you've got a meal fit for king. Subway: eat fresh!
g to the oatse
c to the izzex
fo shizzle my nizzle click here (note: the site is currently down. I expect it to come back online around Thanksgiving) to dispatch Jared and his formerly overweight goons to crack down on Subway if they don't honor the $3.49 Troll Tuesday deal. Make sure you provide the store number and address. Mine is store number 5839. Don't believe me about the concept of the jared dispatch? Yahoo has an article about it here, although it is pretty light on the details.
Note: I've gotten a few comments that the link to Jared Dispatch doesn't work. I think the site got taken down because of abuse of the service. Although the site got taken down, I still highly reccomend Subway and their high quality subs. To show my appreciation, here is a link to Free Subway Coupons. I had to redirect it through Yahoo's site redirector, because my of the filter at work. Anyways, here is the link!
Note 2: I've received word that those links to yahoo actually point to goatse.cx. I am truly sorry about that, and I found the cause. A couple weeks ago, a hacker broke into yahoo and set up some scripts that redirect the user to goatse.cx if a file is in a certain directory. I accidentally tried to access a file in one of those haunted directories. I fixed the links (I have a cousin who works at yahoo), so they should bring you to the actual sites now, not goatse.cx. Update 10/28: The hacker, or should I say hax0r, actually has posted a page on yahoo on how he did it and how the goatse redirector works. It's a very good read. I suggest reading it soon before yahoo finds out about it and takes it down. Check it out ASAP!
Note 3: I am working on locating the articles using google's cache. It is taking some time because I don't remember the exact titles. However, I hope to have the links fixed and working very soon. Keep eating at Subway in the meantime, and request that they bring back the jalepeno cheese roll. It is a fanscrumptiously brilliant roll.
Note 4: To all those who think that sub is an incorrect term, I live in upstate NY, and we call it a sub here. There are no hoagies, grinders, po'boys, or any other made up names. It's not hoagieway, its Subway.
Used copies of first edition are pretty darned cheap.
Easy guys, I put my pants on one leg at a time. The difference is after I put on my pants I make gold records!
This book, as he says, "is not an introduction to DHTML". If you are looking for a book to get started with DHTML, I highly reccomend Essential CSS and DHTML for Web Professionals (2nd Edition), by Dan Livingston. I learned most of my DHTML fundementals from the first edition, and recently purchased the second edition as well. This is a very short book, an unlike many of its kind, can be read almost in "novel" form to get a basic overview without getting bored. You can then go back and try the examples, and actually implement some DHTML. Without a doubt one of the best web development books I have gotten.
-Pete
Soccer Goal Plans
As I just stated, the first edition was a great book and it has never left my desk since the day I bought it. If your a serious web developer or just a part time page monkey, this book (the first or I guess now the second edition) is for you. Hard to go wrong buying an O'Reilly book.
An optimist believes we live in the best world possible; a pessimist fears this is true.
... no matter how good the book is (and it probably is, I'm not meaning to say it isn't), doing good html is really hard / complicated. A good book isn't going to automatically mean you master it - you need to practice like mad, read the source code for websites, create websites, have common sense, a decent understanding of the human-usability thing (not easy), and be prepared to do the tedious work that is typing out html once you've mastered the skill in the first place.
Nice review. I was Googling the web yesterday trying to figure out if any DHTML techniques have become standards. Can anyone point me to a site or two that answers this question? I have my heart set on not writing another line of code that won't work in one browser or another. Within reason.
I don't have the new edition (mine is the first edition, publiched July 1998), but I couldn't imagine being a developer of web-facing applications without this book. The JavaScript reference and the DOM references are great, and the CSS reference is really useful as well. I don't care much for the layer aspects of DHTML (behavior is inconsistent), but this book is still a great addition to any developer's library.
- Vincit qui patitur.
Though The browser war is over ...
To borrow a quote from my friend, "John 'Bluto' Blutarski" who spent most of his college career on double secret probation.
Was it over when the Nazi's bombed Pearl Harbor?
Well it ain't over now!!!!!!
The browser wars won't be over until Mozilla stomps IE.
Other than that, the book sounds excellent!
figure out if any DHTML techniques have become standards.
DHTML means manipulation of the HTML DOM through ECMAScript. The HTML DOM is a W3C Recommendation, and ECMAScript is a European international standard.
Will I retire or break 10K?
Oh, that's right, you only have to design for IE now. Silly me, I forgot that all the other browsers are dead. That, or maybe, they all render DHTML exactly the same now? (HAHAHA)
(Well, maybe Lynx is dead, it's web page seems to be down...)
And the point is, this book doesn't have much market because for the tasks 99.99% of web developers would have use for, they could just study the source code of other web sites. The only people who should read an advanced book like this would be people trying to develop more-complex DHTML floating ads. And that is why there is going to be little market for this book.
Cover your eyes and click this link!
Although I consider the parent thread flamebait, I will respond anyway. The book is not just about DHTML, it is in fact a very good reference for HTML, CSS, and Javascript which are used every day by most web developers. The book outlines which tags are supported by what browsers and thus allows you to create a site that is accessable by all. The book is good for anyone who does or doesnt use DHTML just due to the fact that is is a general reference book.
An optimist believes we live in the best world possible; a pessimist fears this is true.
From where I look at this, the market is actually quite different.
I would say the vast majority of sites I have personally ever worked on have been internal projects. Using web standards to create a front end for an application is a very appealing idea. After all, if one decides to turn the application into a distributed app, there is a lot less work.
This is where I see the advanced topics of DHTML and JavaScript being used, not in the latest homepage of some stranger. Probably not even in the latest shopping site, which was probably designed years ago for ultimate compatibility.
As an aside, with Mozilla (the engine) gaining in popularity as an application framework, I can only see these topics gaining even more relevance.
I liked the 1st edition too, so I'm not suprised that the 2nd got such a rave rating, but 10? I would have liked to see more information on why it's better than the first edition. Not mentioning much in the way of accessibility is a big minus for me working on corporate sites since Section 508 compliance required.
Amazon has it cheaper ($41.97) then B&N by the way.
is this a book a good place to start? I rented an HTML book from the library back in the days of blinking text and "exciting Java applets" but now i think it mostly props up my couch (it had a chapter on VRML).
So VRML seems pretty cool. The Chapter was called Flying through the web and it suggested that the future web will be organized sort of like everquest, but with less load time. Is that a dystopian future? ;)
Anyway: should I buy this book and learn HTML this way, or should I pay some tutor who used to work at pets.com or something?
(-1, Raw and Uncut is the only way to read)
The same thing can be said about any book covering just about any language.
This book covers a huge amount of material. After all, DHTML is just a name used for the interaction of a bunch of different things, and this book seems to try to cover all of them. I wonder whether Goodman is really an expert on all of it (or whether anyone can be). I'd be a lot more comfortable trusting a book like this if it were written by a group of authors with different areas of expertise.
Looking at what I can find about the book's coverage of CSS (which I know a lot about), I'm not optimistic. He seems to make up his own terminology, which can cause significant confusion in any public discussions. He uses the word "attributes" instead of "properties" (e.g., the CSS 'position' property) in the sample chapter available at O'Reilly. This is a mistake that's become very common these days, perhaps due to earlier editions of this book, and causes lots of confusion when people really need to discuss attributes (in HTML). The table of contents also shows sections titled by terms that he seems to have made up: "Common Subgroup Selectors" and "Advanced Subgroup Selectors".
It could be that he's decided he doesn't like the terminology used by the CSS specification so he's making new terminology. Such a decision has significant costs for communication between and among web developers and standards organizations. However, I fear it may not even be a conscious decision, but rather than he just doesn't know enough about CSS to know the correct terminology. (Not that I would expect any one person to be able to learn enough about all the topics covered in this book to be an authority on all of them.)
(If you want a good book on CSS, look for Eric Meyer's books on CSS, one of which is also published by O'Reilly.)
Then why did it need a second edition?
You're dead right here and your trolling is absolutely justified. I've been in the business for years and the best book can't replace a fair deal of experience. You've got to make your share of mistakes to learn how to do right.
bn.com has the book for $47.96. Amazon has it for $41.97
Save yourself some money!
Other authors may do more for back end programming in your specific back end platforms and tools of choice, but you won't do much better than these two for front end browser programming.
...Open Source isn't the only answer -- but it's almost always a better value than the alternatives...
Bullshit! You obviously never used a web application before. Sites that go beyond "here's cute pics of my kitties" need DHTML in order to be able to do anything useful.
Yeah, the powers unleashed can be used for evil, but to say that DHTML is useful only for ads or frivolous uses only reveals an abysmal grasp of the real world (er, web).
I still have yet to understand this. Why would anyone whant to fork out the money for an HTML book when there is so many resources on this topic online. I guess some people still prefer the good 'ol hard copy.
[n8.r0n] http://petesweb.spymac.net/
Cheers,
Ian
First off, the article misleads you into believing that there are only four or five web browsers. The truth is, there is only one--Internet Explorer.
Really? Let's find out. Everyone out there who is not using Internet Explorer, raise your mouse hand.
[Earth's orbit changes infinitesimally]
Thank you
"Where's my other sock?" - A. Einstein
A "10"! Wow!
Oh wait. It's just one measly point above the standard "9".
An above average book, I'd say.
DHTML, properly used, can improve usability. DHTML can provide some really handy menu features and the ability to show/hide/change/highlight information can be very effective. The MSDN library does a good job with this stuff, while not overdoing it.
Yes, DHTML can be abused and will be by marketing types (Flash is even more abused). But that doesn't mean that DHTML is not useful. The problem with using DHTML is that it is not very cross-browser friendly. As you said, though, there is only one real browser - IE. I wouldn't go that far, but in a corporate intranet, where you control the browser version, DHTML is great for creating web-based apps with a lot of functionality. And you don't have much need for ads there.
I'm not a web developer, but I've heard that DHTML support in Mozilla is pretty bad. There are a few sites which either don't work at all in Mozilla, or have "static" versions with DHTML removed*. Some of the web developers around my office have complained about this, and cite IE's DHTML support as the best.
Is this an issue of actual support, or just "IE standards" where people don't want to use real standards, just whatever "standard" Microsoft supports?
* The site I'm thinking of is Citibank's credit card management section. here. Of course, if you don't have a card with them, you can't log in to check it out.
Chapter 1
Don't use DHTML. It's pain in the ass. If you want "cool" stuff that makes Web sites non-accessable, use Flash. You only have to write one set of code then.
Department of Homeland Security: Removing the rights real patriots fought and died for since 2001
Looks like /. junked my link on Section 508 in the previous post.
"Let's face it: web development is not as complex as most software engineering or systems development tasks"
You obviously never had to cope with developing a complex web application. When done right, it's a task far more complex than "conventional" software engineering.
Rich client-side interface doesn't mean a mouse-cursor tracker or validating your form on the client-side. It means letting the client side do ALL your application logic and interface, seperately. And let the server do the dumb job of validating, saving and returning raw data that can be handled by client-side custom components or logic-flow.
Not as complex? No, even more complex, if you're doing anything worthy.
Anyone who develops sites for corporates is going to be using DHTML to make it appealing and easy to use. I develop internet apps for a living, and I use DHTML all over the place in my development. You can make some VERY effective user interfaces with DHTML... I've used it in my sites to create extremely flexible/dynamic forms that pass sophisticated information in a single form that would require 5-6 round trips to the server without it. You quite obviously have no idea what you're talking about. Perhaps you should stop spewing crap and learn a little about the subject before you mouth off.
-1 Uncomfortable Truth
I'm not trying to troll here, this is an actual question because I don't know.
Is DHTML still as relevant as it used to be? Aren't people using server side scripting (perl, php, asp, etc) for truly interactive sites and things like DHTML are little more than nice HTML enhancements for doing the odd neat thing?
I just wondered what the perception was? I'm not anti-DHTML by any means, I'm just interested in where the general trend of web development is going.
All the stuff the version 4 browsers promised is finally becoming reality I can more than experiment with. Also your assertion that developers should spend more time making sites accessible is true. It is still possible to have DHTML and still be accessible, it all depends on the developer and how educated they are in their field. I agree that in most cases the use of DHTML/JavaScript is insane concerning advertising crap. Your belief that DHTML's only application is advertising on the web is crap. There are at least of few of us using it to enrich the user experience. For example forms are probably benefit the most from DHTML and JavaScript. You can have a dynamic changing form that can do a lot of first level data validation without having to submit the form over and over.
Are people *still* pushing DHTML? Any standard that incorporates client-side JavaScript sounds like a bad idea to me. Client-side JavaScript is a pain to implement and has high maintenance costs.
You get plenty of bang for your buck with HTML or XHTML with CSS. If you need business rules, stick 'em on the server.
And don't waste time learning JavaScript! Your time is better spent learning PHP, Java, Python, you name it. You can't use JavaScript anywhere else.
-Ed
At the present moment I'm working on a cross-platform dhtml navigation for an educational institution (a really big famous one, you've heard of it). It's well and fine for you to decide that 'dhtml is used mostly for advertisements' but that just doesn't play itself out in the real world, where I live and work as a web developer. At the school that I'm doing this project for, they decide these things by committee (which is a pain in the ass, but that's how it's done...) and the committee decided they needed a cross-platform (for accessibility) dhtml (for their idea of usability as well as some "coolness" factor, I think) menu.
Perhaps if I had been able to choose, I would not have chosen a dhtml menu. Personally, I hate dealing with java^H^H^H^Hecmascript and the dom of various different browsers, but hey, I didn't choose. I am being paid to do this. So, I stole some script from the web, read it through, and customized it. Danny's first edition of _Dynamic HTML_ was invaluable in this endeavor, even being as old as it is.
So, let me reiterate: in the real world, where people are paid to do things for other people (we call it a _job_) books like this are actually useful! Go figure!
I use IE6 to cruise the web. Given the all the security holes and patches, I'll be damned if I say yes to "Scripts are usually hamless. Ok to run?"
Even a site like the NYtimes runs under lockdown on my machine. Though I trust the web designers at the Times not to be malicious, I don't think they can secure their site against an attack that sneaks a malicious script onto their site. Same thing is true of internal web pages.
You obvisouly don't know what you are talking about.
Well-used Javascript and DHTML is harder to recognize than the obvious stuff you come across as popups and various ad-schemes. Apparently, you pull stats ("99.9999%") out of your ass and try to pass your opinions as facts. Are you in the industry, or is your main experience that as a surfer ?
There is tremendous power to DHTML and Javascript, and it is widely used in commercial sites. It allows the user to interact with the otherwise dead html in ways that help the user and the site.
For a great example, look at International Herald Tribune. You can select articles from the frontpage and put them in a "clippings" folder - no you don't have to login - and then you can read them all later on. No more "open in a new window". For individual articles you can select how it will presented; font size, colums per page etc. This is an example of a site that is usable and intuitive thanks to Javascript, in this case.
So, get a clue to what you are talking about.
Oh, I can't help quoting you because everything that you said rings true
nice associates ID, why don't you just put a link to your paypal account monkey fucker?
foe me, freak me.
Anything you can do, I can do meta.
First of all, what is DHTML? Why not just call it "Scripting CSS and DOM with ECMAScript"? Calling it DHTML is confusing, because it makes it sound like a seperate version of HTML.
Honest question: there seems to be a lot of overlap between this book and other O'Reilly titles. Can anyone tell me why I would want this one rather than "HTML/XHTML, The Definitive Reference" and/or "Javascript, the Definitve Reference"?
--
CPAN rules. - Guido van Rossum
This is the sound of someone sorting a list of items without client-side javascript...
click (wait)... click (wait)... click(wait)...
One example of thousands of times where client-side scripting is useful. Is server-side scripting more useful? Certainly. Should server-side scripting be learned first? Probably. But any web developer that isn't familiar with client-side scripting is a mediocre web developer.
Then the first one wasn't THAT definitive!!
Articulos para gente geek: Poleras, linux, libros y mas
Suppose you want to process keypress events in a form input, to provide a character count. You're going to bang on your server for each one? Wow, that's really really stupid.
Oh, your alternative is to provide no extra functionality like that in any of your web applications? Ok, thanks for playing, but you lose.
Your time is better spent learning PHP, Java, Python, you name it. You can't use JavaScript anywhere else.
You can use PHP for web page scripting, and not "anywhere else". What's your point?
Yes, half the slashdot population could indeed be using a browser that is not IE. However, 99% are not, so making DHTML compatible for other browsers should be the least of a web developer's concerns. Content and navigation should come first.
:)
I agree. I guess DHTML and JavaScript have excellent tools for intranets, for instance for services like accessing Novell GropWise through the web browser. I think you're right, that there are good uses for DHTML.
I don't mind useful applications, but it seems that the internet is more annoying now it was in 1996 and DHTML is one of the reasons no doubt. It does have good purposes, but no thank you 99% of the time, when I'm accessing the internet and not intranets.
Thank you to people who enlightened us all about intranet usefulness. I posted my opinion, it went to 4, Interesting, and generated a few explanations of how DHTML is useful. Now that my perspective had a counterpoint, my moderation quickly went down to zero. I ask, are we not all enlightened from the discussion that took place? How can something that entices useful information be devalued once moderators judge that a 'better' opinion appears, all stemming from this? And flamebait, of all things...
Cover your eyes and click this link!
I'm not so up to date what's the current state of the art, but some years ago, when I was applying DHTML, I always found Dan Steinman's Tutorial Dynamic Duo very helpful (thanks Dan!).
It has been continued as DynAPI
Sometimes an even better approach would be to study the code existing out there first, such as the excellent code offered up by exitfuel. One of the most important pieces of code is the window.open function, and onload and onleave of the body element. Once you have them mastered, along with the Document Model of Objects, you have a good grounding for some serious Flash programming. There are some pretty intense workarounds necessary for some of the mechanisms that people have in place nowadays, but it's definitely doable! Good luck!
tag- Why don't most girls like programming?
I am looking to accumulate friends. Please click on the circle and add me as a friend. Thanks!
I wish I could, I really do...but unfortunately people who obviously actually need to read literature like this are still spewing out websites which i cannot view in Mozilla. Examples include, but are not limited to: the intranet at my job, the Windows Update page ;-), but for example also my "I need to host a file for free with no hassle" kinda provider www.0catch.com
People replying to my sig annoy me. That's why I change it all the time.
If you want eye candy, use Flash, which does a much better job of it.
You forgot the best part...the clippings jump from where you clicked them toward your menu bar, and are gone from where you originally clipped them! Ugh, I feel a bit of web development envy...
Seriously, it's amazing they not only had the foresight to include this functionality, but also were able to somehow make it intuitive and *gasp* not annoying! When you mention a menu bar following you as you scroll down and clippings that jump across the screen toward it, you run the very real risk of annoying the crap out of your user. The fact that that isn't the case is commendable. (And yes, I verified this worked in IE 5.1 Mac and Mozilla 1.1!) All that, and functionality to boot.
concrete5: a cms made for marketing, but strong enough for geeks.
...you'll never know.
Anyone own both? How do they compare to one another?
Unable to read configuration file '/bigassraid/htdig//conf/14229.conf'
Geocrawler error message.
TROLL?
Funny, sure, Informative, really... why muck around with the various browser compatability issues when even Netscape 4 supports the same Flash plugin that Opera/IE/Mozilla/You Name It supports??
Maybe Danny himself modded me down to boost sales =)
Department of Homeland Security: Removing the rights real patriots fought and died for since 2001
How I wish I could use CSS2 positioning instead of table-table-table-in-a-table layout methods we've been using since 95. I understand that for intranet use and 'high design' sites have the freedom to use whatever they want, but it just seems that we're still mired in using our old tricks when we create publicly available sites that we want the world to see. Agree/disagree? How many folks out there are still using age-old methods of table layout tricks, transparent spacer gifs, etc to achieve the layout they need vs. css2 and other d/html tricks?
Are you crazy? How the hell do you write a pull-down menu that changes based on the user's selection using _only_ PHP? And Java, nice, but good lord it takes forever to initalize on my machine, and has a huge overhead. Same for flash. Great stuff, if you have a huge connection bandwidth.
I'm not trying to say that Javascript is even a _good_ implementation, but in a lot of cases it's neccessary and/or useful.
I find that a PHP/Javascript combination is practically unstoppable. Theres a lot you can do with DHTML that you probably haven't even thought of.
And yes, javascript has no use (that I know of) outside of webpages. Point taken.
Posting as anonymous to collect your Amazon referrals now, I see. Why haven't you been mod down yet?
Well, you can use PHP with GTK as well...
http://gtk.php.net
Hmm -- You sound like the guys who invented ASP.NET. Having your HREFs RUNAT="server" all the time only sounds like a good idea when you are on localhost. Now think about the CEO dialing in through your sweet 33.6Kbs RAS system from a hotel somewhere.
And don't waste time learning JavaScript! Your time is better spent learning PHP, Java, Python, you name it. You can't use JavaScript anywhere else.
Or learning PHP/Java/Python enough to dynamically generate your Javascript code/data.
...buy the book here, and support stores that protect their customers' privacy.
here
Theres also two projects that add JavaScript to Diablo2
d2jsp and Jed
I've never used jed, but d2jsp is verry easy to use, and comes with a bunch of examples that will work for whatever you need with only minor tweaking.
Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
Slightly off-topic, but I once visited a web site full of examples of HTML pages that "simulated" having embedded graphics using only straight HTML. Does anyone recognize this who can provide a IRL? I'd google but searching for "html no graphics" or "html graphics" etc. is pretty useless.
:)
(I've been waiting for a topic where this wasn't *totally* off-topic, so please spare me.
Thanks in advance.
Nazi's never bombed Pearl Harbor. It was the Japanese that bombed Pearl Harbor.
The index in the first edition was atrocious. It seems like most every DOM or HTML attribute that you would need to look up weren't indexed.
I got this book the day it came out. I've been waiting a few years for it, and I haven't been disappointed.
The reason I like the book so much is because it's not soley limited to DHTML. The first couple hundred pages talk about DHTML and it's uses in browsers, etc. All very great writing, but stuff I already know.
The great part about the book is the other 1000+ pages of syntax references for everything, HTML, JS, CSS, DOM, everything. Basically it's a book that tells you everything you can possibly do in a browser, not just DHTML.
I've used it for looking up CSS properties, or HTML attributes, or Javascript functions. I don't know how many times I've thought of and idea of something to do in a browser, looked in the book, and found some method to do it. Sure beats trying to find info on the W3C site.
Best book I've ever owned, bar none.
Wrong. Javascript is supported server-side by MS IIS, Sun One (was chilisoft) ASP and stryon (was halcyon) iASP - wiht the latter two running on a wide range of web servers.
Write your javascript well and you can use the same functions/objects (eg. form validators) on the client and the server.
Perhaps you should tell your friend to go droll over Josh Harnett some more, since a) He obviously got all he knows about Perl harbour from that awfull movie, and b) He missed the whole "It was the Japenese" idea.
What I don't get is why style-sheet commands are not HMTL-based? Why have Yet-Another-Language? We have JavaScript, HTML, that funky style-sheet syntax, and a CGI-based scripting language (Perl, PHP, ASP, etc).
That can make one's head spin. They could have integrated style-sheet syntax into HTML, couldn't they?
Table-ized A.I.
Er, that's what DHTML is, dude. HTML, script, and stylesheets. One would assume it's a good reference for its subject matter, since DHTML is in the title, and all...
Perhaps it's a fun challenge for the developer - I know it was for me once. I loved the opportunity to get our stuff working cross-platform. I also developed a pretty neat OO javascript compliance calculator that did field formating and calculating on the fly cross browser (see andyerickson.org). The spec from Netscape seemed to be enough documentation for me.
That's like saying "Don't buy a car. You can only use it on roads!"
I don't care if JavaScript can only be used client side for web sites. There are a whole lot of websites, and a whole lot of clients. Besides, the more processing I can keep off of my server the better.
I realize you're mainly being facetious, but my knee is jerking...
Although it's "tuned for" server-side web applications, PHP has quite a lot of useful capabilities built into it. Think of it as "PERL lite", with an easier-to-follow syntax.
I find myself using the command-line version of the interpreter frequently. It doesn't have nearly as "broad" of a range of capabilities as, say, PERL does, but it's hard to beat for the sorts of things that it's tuned for - internet communications, text-handling, simple on-the-fly graphics, and talking to database servers, for example, whether you use it within a web page or at the command line as a cron job...
Ah, there, got my knee to stop...
At any rate, I agree completely with the point of your post - just because some people abuse javascript for fluff and nonsense doesn't discount the real usefulness it has. As an earlier poster pointed out, a combination of client-side javascript and server-side PHP can generate some really kick-butt web-based applications...
Hacker Public Radio is our Friend
We could go out and buy fancy books like this, but let's not forget who sets the offical standards around here; the World Wide Web Consortium do. So reading their free version is as good as any other book (but maybe it may not be as "forth comming" in writting, as books tend to be, were they'll explain what the W3C first worte).
Short summary, W3C is for us (geeks with experience) wanting to know, without forking over money for it.
The info
So lets head over to: http//www.w3.org
A quick look around, and no "DHTML"; but there's that "DOM" *click*.
We're now in DO[O]M land (here's were DOOM came to life, ya' know)..*ohh* I mean DOM! land : )
Here we find:
The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents. The document can be further processed and the results of that processing can be incorporated back into the presented page. This is an overview of DOM-related materials here at W3C and around the web.
Why the Document Object Model?
"Dynamic HTML" is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated. The W3C has received several submissions from members companies on the way in which the object model of HTML documents should be exposed to scripts. These submissions do not propose any new HTML tags or style sheet technology. The W3C DOM WG is working hard to make sure interoperable and scripting-language neutral solutions are agreed upon.
Now go one more block, till you come to"Public Release of Specifications", turn left at the " DOM Technical Reports ".
Now we have a nice view of all DO[O]M land. *Pretty isn't it?
Two more blocks, look out for "Document Object Model Level 3", and turn right at " Document Object Model Level 3 Core"
[Now you are wondering why Level 3? Not 2? Well, if you would read Level 2 (and compare with 3), you would notice there's missing a _good_ explained section; and that's were we are heading
Straigt forward, till "Table of contents", and make a turn at " What is the Document Object Model?
Now park your quiche'ster mister/miss. And fork over the money!!!
Editors:
Philippe Le Hégaret, W3C
Lauren Wood, SoftQuad Software Inc. (for DOM Level 2)
Jonathan Robie, Texcel (for DOM Level 1)
Introduction
The Document Object Model (DOM) is an application programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. In the DOM specification, the term "document" is used in the broad sense - increasingly, XML is being used as a way of representing many different kinds of information that may be stored in diverse systems, and much of this would traditionally be seen as data rather than as documents. Nevertheless, XML presents this data as documents, and the DOM may be used to manage this data.
With the Document Object Model, programmers can build documents, navigate their structure, and add, modify, or delete elements and content. Anything found in an HTML or XML document can be accessed, changed, deleted, or added using the Document Object Model, with a few exceptions - in particular, the DOM interfaces for the XML internal and external subsets have not yet been specified.
As a W3C specification, one important objective for the Document Object Model is to provide a standard programming interface that can be used in a wide variety of environments and applications. The DOM is designed to be used with any programming language. In order to provide a precise, language-independent specification of the DOM interfaces, we have chosen to define the specifications in Object Management Group (OMG) IDL [OMG IDL], as defined in the CORBA 2.3.1 specification [CORBA]. In addition to the OMG IDL specification, we provide language bindings for Java [Java] and ECMAScript [ECMAScript] (an industry-standard scripting language based on JavaScript [JavaScript] and JScript [JScript]).
What the Document Object Model is not
This section is designed to give a more precise understanding of the DOM by distinguishing it from other systems that may seem to be like it.
Where the Document Object Model came from
The DOM originated as a specification to allow JavaScript scripts and Java programs to be portable among Web browsers. "Dynamic HTML" was the immediate ancestor of the Document Object Model, and it was originally thought of largely in terms of browsers. However, when the DOM Working Group was formed at W3C, it was also joined by vendors in other domains, including HTML or XML editors and document repositories. Several of these vendors had worked with SGML before XML was developed; as a result, the DOM has been influenced by SGML Groves and the HyTime standard. Some of these vendors had also developed their own object models for documents in order to provide an API for SGML/XML editors or document repositories, and these object models have also influenced the DOM.
Now you find yourself all alone on the road again.....
I don't claim I know more than I know, and if you know you know more than I know, then by all means, let me know.
all the trouble web designers are going through making special cases for the amounts of browser/version combinations.
What about the difference between IE's box model (a box's width is outside its border) and CSS's (a box's width is inside its padding)? Is box-within-box the accepted model?
Will I retire or break 10K?
i was going to by this book, but i found that it was making the car tires flat
Jonahweb.com has stuff.
We use DHTML for all sorts of neat-o stuff.
Say you pull back a recordset. You display it in a line-item view. The user can click on the row, where we just format the page around the data differently, based on what the user wants to see, based on what the user has the capability to see. People hear DHTML and think "Giant glowing pickles flying out from the left, and menus that pop out when you sneeze." There is alot more to it than that...
I don't care if JavaScript can only be used client side for web sites. There are a whole lot of websites, and a whole lot of clients. Besides, the more processing I can keep off of my server the better.
You couldn't be more wrong. I'm a consultant, and when I need to write a server-side ASP script, I do it in JavaScript. IIS supports server-side JavaScript* out of the box.
* Note: for purposes of the above message, JavaScript = JScript = ECMAScript
bp
I think that the later versions were much better, but by then the hype had faded. There are some other projects with more promising standards for easy 3d world creation out there I think.
--
Overcaffeinated. Angry geeks.
For people interested in DHTML, RelativeLayers can be a very helpful toolkit :
http://www.uwyn.com/projects/relativelayers/indexFrom the project description :
RelativeLayers is a Javascript library for creating dynamic designs that adapt themselves to the user's browser dimension. It supports Netscape, Internet Explorer, Mozilla, Konqueror and Opera. Lots of website design concepts have been re-thought and optimized.
RelativeLayers unifies web design and takes it a step further by introducing features such as error handling, browser detection, real-time moving / resizing / clipping, relative positioning and dimensioning, external page embedding, a revised event model, automatic limit enforcement, drag & drop and a lot more.
Geert Bevin
Without a doubt, the first edition of this book is the best web book I've owned. I use it regularly to check myself on unmemorized topics, and lend it out to friends that find themselves in the same boat.
It's a great combination of HTML/Javascript/DHTML/CSS etc.
Well worth the money.
Gah! I hate this sort of grammatical mishmash. Is the quality of Goodman's writing accurate, or is Goodman's writing accurate? Extra words always lead to muddled expression.
(I hate to nitpick, but this does seem to be a common mistake made in Slashdot postings. Sheesh!)
Perhaps the question should be who is using a browser other than IE. I have to use IE to make sure my pages work in IE, just like I keep Netscape 4.xx around to make sure my apps work for those. Generally though Mozilla is my browser of choice. Thus I can't answer that I am someone who doesn't use IE.
Sig is on vacation
Folks, if you've never had the pleasure, consider this: How often do you end up laughing out loud about the supposed dangers of "ostrich farming" when you are actually learning what is essentially a programming language? So my thanks to Ms. Lemay and dannyg (plus the php crew) for many hours of amusement that got me from being literate as a C++ and SQL database designer to being able to do pretty darn good database backed web sites from design all the way through to release.
...Open Source isn't the only answer -- but it's almost always a better value than the alternatives...
You can write ASP in JavaScript (well, OK, JScript) if you wanna. And you can use it as a scripting language for COM components of any kind, if you use the MS Script Control. I've scripted terminal emulation clients and MS Office apps in JScript. I don't know if there's an equivalent framework in *nix - is th'Gimp ECMA-scriptable? How about Gnumeric?
In MS land, you're probably better off with Ruby or Python plus COM bindings, if your place of work will let you use them (mine won't...). But ECMA-script is a pretty neat second best - unless you'd rather use VBScript...
Experience is a hard school, but fools will learn no other.
<model>
<instance>
<login>
<username/>
<password/>
</login>
</instance>
<bind nodeset="username" required="true()"/>
<bind nodeset="password" require="true()"/>
</model>
<input ref="username">
<label>Username</label>
</input >
<secret ref="password">
<label>Password</label>
</secret>
See http://www.w3.org/MarkUp/forms -- and there's already an IE plugin that does it.
Screw it.
--
Power to the Peaceful
Javascript is a language, and there is even a stand-alone implimentation. Javascript is embedded in other programs, it's just not popular for other uses.
I think it is/was also used for server-side stuff in netscape's webserver
Apocalypse Cancelled, Sorry, No Ticket Refunds