AJAX uses four technologies, which are as follows:
JavaScript XMLHttpRequest Document Object Model (DOM) Extensible HTML (XHTML) and Cascading Style Sheets (CSS)
When i run a this code giving some error.