• Home
  • Jobs
  • Courses
  • Certifications
  • Companies
  • Online IDE
  • Login
  • Signup
MYTAT
  • Home
  • Jobs
  • Courses
  • Certifications
  • Companies
  • Online IDE
  • Login
  • Signup
ASP And ASP.NET Tutorials
  • ASP.NET Web Pages - Tutorial
  • ASP.NET Web Pages - Adding Razor Code
  • ASP.NET Web Pages - Page Layout
  • ASP.NET Web Pages - Folders
  • ASP.NET Web Pages - Global Pages
  • ASP.NET Web Pages - HTML Forms
  • ASP.NET Web Pages - Objects
  • ASP.NET Web Pages - Files
  • ASP.NET Web Pages - Databases
  • ASP.NET Web Pages - Helpers
  • ASP.NET Web Pages - The WebGrid Helper
  • ASP.NET Web Pages - The Chart Helper
  • ASP.NET Web Pages - The WebMail Helper
  • ASP.NET Web Pages - WebSecurity Object
  • ASP.NET Web Pages - Publishing The Website
  • ASP.NET Web Pages - Classes
  • ASP.NET Razor - Markup
  • ASP.NET Razor - C# And VB Code Syntax
  • ASP.NET Razor - C# Variables
  • ASP.NET Razor - C# Loops And Arrays
  • ASP.NET Razor - C# Logic Conditions
  • ASP.NET Razor - VB Variables
  • ASP.NET Razor - VB Loops And Arrays
  • ASP.NET Razor - VB Logic Conditions
  • ASP Tutorial
  • ASP Syntax
  • ASP Variables
  • ASP Procedures
  • VBScript Conditional Statements
  • VBScript Looping
  • ASP Forms And User Input
  • ASP Cookies
  • ASP Session Object
  • ASP Application Object
  • ASP Including Files
  • ASP The Global.asa File
  • ASP AJAX
  • ASP Sending E-mail With CDOSYS
  • VBScript Functions
  • VBScript Keywords
  • ASP Response Object
  • ASP Application Object
  • ASP Session Object
  • ASP Server Object
  • ASP ASPError Object
  • ASP FileSystemObject Object
  • ASP TextStream Object
  • ASP Drive Object
  • ASP File Object
  • ASP Folder Object
  • ASP Dictionary Object
  • ASP AdRotator Component
  • ASP Browser Capabilities Component
  • ASP Content Linking Component
  • ASP Content Rotator Component (ASP 3.0)
  • ASP Quick Reference
  • ADO Introduction
  • ADO Database Connection
  • ADO Recordset
  • ADO Display
  • ADO Queries
  • ADO Sort
  • ADO Add Records
  • ADO Update Records
  • ADO Delete Records
  • ADO Demonstration
  • ADO Speed Up With GetString()
  • ADO Command Object
  • ADO Connection Object
  • ADO Error Object
  • ADO Field Object
  • ADO Parameter Object
  • ADO Property Object
  • ADO Record Object
  • ADO Recordset Object
  • ADO Stream Object
  • ADO Data Types
  • Home
  • Courses
  • ASP And ASP.NET Tutorials
  • ASP AJAX

ASP AJAX

Previous Next

What Is AJAX?

AJAX = Asynchronous JavaScript and XML.

AJAX is a technique for creating fast and dynamic web pages.

AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.

Classic web pages, (which do not use AJAX) must reload the entire page if the content should change.

Examples of applications using AJAX: Google Maps, Gmail, Youtube, and Facebook tabs.



Practice Excercise Practice now

How AJAX Works

AJAX



Practice Excercise Practice now

AJAX Is Based On Internet Standards

AJAX is based on internet standards, and uses a combination of:

  • XMLHttpRequest object (to exchange data asynchronously with a server)
  • JavaScript/DOM (to display/interact with the information)
  • CSS (to style the data)
  • XML (often used as the format for transferring data)

AJAX applications are browser- and platform-independent!



Practice Excercise Practice now

Google Suggest

AJAX was made popular in 2005 by Google, with Google Suggest.  It is using AJAX to create a very dynamic web interface: When you start typing in Google's search box, a JavaScript sends the letters off to a server and the server returns a list of suggestions.



Practice Excercise Practice now

The ASP File

The page on the server called by the JavaScript above is an ASP file called "getcustomer.asp".

The source code in "getcustomer.asp" runs a query against a database, and returns the result in an HTML table:

<%
response.expires=-1
sql="SELECT * FROM CUSTOMERS WHERE CUSTOMERID="
sql=sql & "'" & request.querystring("q") & "'"

set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("/datafolder/northwind.mdb"))
set rs=Server.CreateObject("ADODB.recordset")
rs.Open sql,conn

response.write("<table>")
do until rs.EOF
  for each x in rs.Fields
    response.write("<tr><td><b>" & x.name & "</b></td>")
    response.write("<td>" & x.value & "</td></tr>")
  next
  rs.MoveNext
loop
response.write("</table>")
%>



Practice Excercise Practice now

Previous Next
COMPANY
  • About us
  • Careers
  • Contact Us
  • In Press
  • People
  • Companies List
Products
  • Features
  • Coding Assessments
  • Psychometric Assessment
  • Aptitude Assessments
  • Tech/Functional Assessments
  • Video Assessment
  • Fluency Assessment
  • Campus
 
  • Learning
  • Campus Recruitment
  • Lateral Recruitment
  • Enterprise
  • Education
  • K 12
  • Government
OTHERS
  • Blog
  • Terms of Services
  • Privacy Policy
  • Refund Policy
  • Mart Category
Partner
  • Partner Login
  • Partner Signup

Copyright © RVR Innovations LLP 2025 | All rights reserved - Mytat.co is the venture of RVR Innovations LLP