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

Ajax & Cross-browsers

 
Rajan Chinna
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Ajax code work across all major browsers? Is there any specific things to consider while coding for xBrowsers?

If javascript setting is blocked at the browser, does the code still function?
 
Liyaquat Ali
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax required javascript, and as long as the javascript code is cross browser compatible the Ajax code will work.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Liyaquat,

Your statement is a little broad since it requires a little more than JavaScript to see if it will work. Here is a list of browsers that support the XMLHttpRequest Object: http://en.wikipedia.org/wiki/XMLHttpRequest#History_and_support

With IE 6 and under, certain settings of ActiveX being disabled will cause it to not work.

Eric
 
Sas Jacobs
Author
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax requires slightly different JavaScript approaches in each browser so the code works a little differently. You can use cross browser libraries or write code that branches.

Ajax can also use XSLT to apply transformations. To do this on the client side, you'd have to use IE5+, Mozilla 1+ or Opera 9+. Opera 8 has no XSLT support.

Cheers

Sas Jacobs
 
Liyaquat Ali
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the information Eric and Sas,

Definitely, Ajax does require a bit more then just compatible Javascript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic