aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes AJAX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX" Watch "AJAX" New topic
Author

AJAX

shan blossom
Greenhorn

Joined: Sep 06, 2006
Posts: 17
I have implemented Ajax in my web application.It is working fine in Internet Explorer.How to implement Ajax in other browsers like Mozilla,Firefox etc.?Will anyone help me?
Divya Guttikonda
Ranch Hand

Joined: Mar 09, 2005
Posts: 47
Its pretty much the same i guess.See this sample

if (window.XMLHttpRequest) { // Mozilla, Safari, ...
req = new XMLHttpRequest();
} else if (window.ActiveXObject) { // IE
req = new ActiveXObject("Microsoft.XMLHTTP");
}
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

"blossoms",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Wyatt Matthews
Greenhorn

Joined: Aug 31, 2006
Posts: 3
There are several of open source javascript libraries available that will handle the implementation of the XMLHttpRequest object to ensure cross-browser compatability. Prototype.js is a good library to look into. Using a library can be helpful from the standpoint that you do not necessarily need to know all the dirty details of how the request is being created. However, it is important to understand the theory behind Ajax, and how it is supposed to be used. You can find the prototype library at http://prototype.conio.net/.

Good luck.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX