This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes What about cross-browser issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What about cross-browser issues" Watch "What about cross-browser issues" New topic

What about cross-browser issues

Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

Welcome to Stoyan Stefanov. I think the great thing about JavaRanch is the opportunity we have to have almost real time discussions with authors and other experts.

My question is how much does your book deal with cross-browser issues. I find this (browser differences) as the most frustrating and annoying issue when dealing with JavaScript.


Mike Firkser
Rutgers '84
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

Most experienced web developers will tell you at this stage of the game that writing raw JavaScript without the aid of a library that handles such nuances for you is madness, jQuery, Prototype, Dojo, YUI, and the rest of the motley crew all help you deal with the madness of browser differences.

And when Ajax enters the picture, well... why beat yourself in the forehead with a ball-peen hammer unless you have to?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Stoyan Stefanov
Ranch Hand

Joined: Jul 16, 2008
Posts: 61
Hi Mike,

JavaRanch is more fun for the author, let me tell you, people love to talk about their work so instead of grabbing unsuspecting standbyers (like my wife who can't care less about javascript) and bore them to tears talking about my book, here I have a chance to talk to people who actually ask for it

The book is about core javascript, not so much about browsers, as the javascript programs can live a variety of different environments and the browser is just one such environment, the most popular, but not the only one. So x-browser issues are not a main topic. There's one chapter (chapter 7) that discusses the browser environment and presents the cross-browser challenges of having something as seemingly simple as attaching an event handler.

As Bear says libraries can help wrestle the browser, and he also noted in another post that the issues that frustrate people are not with the javascript language but more with the different DOM implementations and, I would add, BOM improvisations At least DOM is a standard, however poorly supported, while BOM (browser objects model) is just a jungle. Luckily there's a x-browser section of the jungle which is a de-facto standard. In my browser examples I only talk about cross browser DOM and BOM objects, methods and properties (apart form the event handling discussions, there's hardly anything cross-browser about events).

<a href="" target="_blank" rel="nofollow">my OOJS book</a>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

Originally posted by Stoyan Stefanov:
(apart form the event handling discussions, there's hardly anything cross-browser about events).

And don't we have the scars to prove it?!
I agree. Here's the link:
subject: What about cross-browser issues
Similar Threads
Problem with Richface
I want to call a jQuery function after the ajax response
cross browser issues
JSF and cross-browser
Browser specific