The moose likes HTML, CSS and JavaScript and the fly likes Ajax and browser compaitibility 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 "Ajax and browser compaitibility" Watch "Ajax and browser compaitibility" New topic

Ajax and browser compaitibility

Ranch Hand

Joined: Feb 26, 2005
Posts: 35
Ajax is being used nowdays heavily for gui designs in some third party open source libraries like scriptaculous , moo.js, dojo . However when code is used on different browsers it shows different effect. Is it because of html limitation or ajax+javascript limitation.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63854

Different browsers have different implementations, so you will see some differing behaviors and capabilities.

IE6 is perhaps the most abberant of the lot as it uses an ActiveX object rather than a native Javascript object for XMLHttpRequest.

Libraries such as Prototype go a long way to shielding you from the differences, but some are unavoidable.

[Asking smart questions] [About Bear] [Books by Bear]
Kris Hadlock

Joined: Nov 14, 2006
Posts: 26
It is definitely because of the browser limitations not the technologies.

<a href="" target="_blank" rel="nofollow"></a><br /><a href="" target="_blank" rel="nofollow"></a><br /><a href="" target="_blank" rel="nofollow"></a><br /><a href="" target="_blank" rel="nofollow">Ajax for Web Application Developers</a>
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

"Yeah technologies have alternate solution"
hope this example will clear your on my first sentence.

getYear() is method of Date Object in Javascript:
I use this method in IE its working fine in it but not in Mozila FireFox.
After that i found getFullYear() method in same Date Object in javascirpt upgraded version (don't remember what version is)

now its work perfectly in both browser.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
Browser incompability..

<a href="" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="" target="_blank" rel="nofollow">Java Weblog</a> | <a href="" target="_blank" rel="nofollow">Computing Articles</a>
I agree. Here's the link:
subject: Ajax and browser compaitibility
jQuery in Action, 3rd edition