Programming

Programming intro
Java

Markup

First webpage guide
HTML
XHTML

Style & Layout

CSS

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

AJAX methods

The open() method

The open() method is used to get the server side script that will be used in an AJAX application.

This method takes three parameters:

Method

Specifies the method by which to get the script. Can take the value of "GET" or "POST"

URL

The URL of the script

Asynchronous

Takes the value of "true" or "false" specifying if the request should be handled asynchronously

Syntax:

ajaxObject.open(Method, URL, Asynchronous);

Example:

ajaxObject.open("POST", "page1.php", true);

The send() method

The send() method sends the actual request to the server. It should contain the value "null"

Example:

ajaxObject.send(null);
Reference
HTML/XHTML
CSS
Javascript
AJAX

Practice

Online code editor
Step-by-step tutorials
Practical examples
Practical exercises

Reference

Terms glossary

Rate this site

Rate this site
Visitor comments