Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What about cross-browser issues

 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Stoyan Stefanov
author
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic