AJAX

AJAX

I have been experementing with standard javascript ajax

it goes something like this

Var U = new xmlhttprequest



 
Send data function
{
U.open(properties);
U.setRequestHeader(properties
U.send(data);


}
 
When data is recieved (U.readystatefunction)
{
do something with the data
}
 
Oh and the initial creating of the object is replaced with a string of if statements which test the browser for compatability with various alternatives to xmlhttprequest in order to select a compatable one.

would i be better off just using jquerys AJAX functions
if yes
why and how do they work