Ajax Section Index
what is the difference between JavaScript & AJAX? For what purpose AJAX is used ? what is the abbrevation for AJAX?
Hi Pradeep
AJAX is "Asynchronous Java Script and XML".Mainly used if we need to refresh a part of a HTML page but not the total page.For example take an example of Country/State.I have a Country l...more
How can I call a Java method from Javascript?
How can I call a Java method from Javascript?
Is there any way that an AJAX object can get back a record set?
You could build an XML document out of your recordset and send that back to the server, say you had a redord set for a "user" with the following details (name, surname, age, email), you could bui...more
Is it possible to set session variables from javascript?
Is it possible to set session variables from javascript?
Cannot parse XML generated by JSP I am generating an XML using JSP, when i run the JSP in IE it shows the XML as per DOM, but when i try to parse it using Javascript , the command xmldoc.documentElement returns null instead of the root node. How should i Parse this XML ?
This is working code I am using, it might help you.
if (!isIE)
xmldoc = req.responseXML;
else {
//IE does not take the responseXML as a dom document!!!!
xmldoc = new ActiveXObject...more
Can I use Ajax with Microsoft's .NET?
See http://ajax.schwarz-interactive.de/ for a free AJAX implementation for the .NET Framework.
Are there any frameworks available to help speedup development with AJAX?
There are several browser-side frameworks available, each with their own uniqueness... Here are some:
Dojo - http://www.dojotoolkit.org
Rico - http://www.openrico.org
qooxdoo - http://qooxdoo.sou...more
How do I test my AJAX code?
There is a port of JUnit for client-side JavaScript called JsUnit (http://www.edwardh.com/jsunit/).
What exactly is the W3C DOM?
The W3C Document Object Model (DOM) is defined by the W3C as the following:
The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamic...more
How do I abort the current XMLHttpRequest?
Just call the abort() method on the request.
How do I get the XMLHttpRequest object?
Depending upon the browser...
if (window.ActiveXObject) { // Internet Explorer
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} else if (window.XMLHttpRequest) { // And the rest
h...more
Is AJAX code cross browser compatible?
Not totally. Most browsers offer a native XMLHttpRequest JavaScript object, while another one (Internet Explorer) require you to get it as an ActiveX object. Once you have the object, you're out o...more
What browsers support AJAX?
Internet Explorer 5.0 and up, Opera 7.6 and up, Netscape 7.1 and up, Firefox 1.0 and up, Safari 1.2 and up, among others.
Where can I find examples of AJAX?
While components of AJAX have been around for some time (for instance, 1999 for XMLHttpRequest), it really didn't become that popular until Google took advantage of it with their webmail system, G...more
What is the XMLHttpRequest object?
It offers a non-blocking way for JavaScript to communicate back to the web server to update only part of the web page.