File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What about cross-browser issues" Watch "What about cross-browser issues" New topic
Author

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.

Thanks.


Mike Firkser
Rutgers '84
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

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
author
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="http://www.thinkinginjavascript.com" target="_blank" rel="nofollow">my OOJS book</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

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?!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What about cross-browser issues