Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XmlHttpRequest vs jQuery

I am new to both javascript and jQuery. I am developing a page in which I have generated page's whole html from code. In the page, there in a textbox to post messages and for each message comments can be posted. Now when I post a new comment or delete a comment I need to do database call. I know 2 method to do it from js

  1. do xmlhttprequest
  2. do ajax call from jQuery.

Can anybody suggest me which method will suite my requirement?

like image 385
Radhi Avatar asked Jan 28 '10 04:01

Radhi


1 Answers

Each browser has their own implementation of XmlHttpRequest. Using a framework will minimize the headache of cross-browser differences and quirks, especially if you are very new.

like image 115
Dominic Barnes Avatar answered Dec 01 '22 15:12

Dominic Barnes