« Zephyr Framework, the ajax based framework for PHP5 | Main | FireBug, AJAX debugging tool for Firefox and much more »

Mozilla Developer Center on AJAX

Mozilla Developer Center have a new section dedicated for AJAX with an AJAX introductory tutorial, references, articles, examples, tools, community, and other resources. The new section is available in English, French, Japanese, Polish and Dutsh.

Firefoxlogo.png
Asynchronous JavaScript and XML (AJAX) is not a technology in itself, but is a term that describes a "new" approach to using a number of existing technologies together, including: HTML or XHTML, Cascading Style Sheets, JavaScript, The Document Object Model, XML, XSLT, and the XMLHttpRequest object. When these technologies are combined in the AJAX model, web applications are able to make quick, incremental updates to the user interface without reloading the entire browser page. This makes the application faster and more responsive to user actions
Bookmark this article at these sites
Comments
1

I am getting stuck up.
i am using ajax concept in my application.
i used req.open("POST",url,true) method
i am trying to post values to the action class.
i.e. i am sending parameters through req.send(params).This is working perfectly in IE.
But it is not working in mozilla firefox.
the values send are becoming null.
please send me the reply.


2

Try setting header before sending request :

req.open('POST', url, true);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
req.setRequestHeader("Content-length", params.length);
req.setRequestHeader("Connection", "close");
req.send(params);

3

i used the ajax code to open the html form direcly. it is working fine with the IE but not showing the form content with the mozilla firefox.
sample code:
file1.php

function ListIncevOfUser(){

var request = createRequestObject();
var param="";


param+="&memid="+memid;
param+="&level="+level;

document.getElementById('incen').innerHTML = '';
/* Opening a request */
request.open("POST", "file2.php",true);
request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');

request.onreadystatechange = function()
{
if(request.readyState == 4)
{
response = request.responseText;


document.getElementById('incen').innerHTML = response;


}
};

request.send(param);

}


file2.php enter name:
Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):