Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Secrets of The Javascript - Cross browser strategy

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

I am very much interested in chapter 11 Developing cross-browser strategies.

How much emphasis were given on this particular chapter? Does this chapter requires knowledge on
several browser quirks (*IE hacks).

Sometimes I encounter problems that works on Firefox but fails heavily on IE. Does this chapter covers the
rules on how to create good javascript functions that will conquer all browsers?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Reyes wrote:How much emphasis were given on this particular chapter? Does this chapter requires knowledge on
several browser quirks (*IE hacks).

No paritcular prior knowledge of IE (or other brower's) quirks are necessary. We tell you about them.

Sometimes I encounter problems that works on Firefox but fails heavily on IE. Does this chapter covers the
rules on how to create good javascript functions that will conquer all browsers?

Yup. We cover many approaches form the easy (feature detection) to the more esoteric (feature simulation).
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
feature detection


..does the words above means that I would learn if this javascript function would work on one browser but would fail on the other...sorry just curious enough..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Feature detection is distinct from browser detection. Rather than determine what course to take based upon the browser, you test to see if the feature exists. A good example of this is most raw Ajax code which tests to see if it should use ActiveX or XMLHttpRequest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic