Compare Revisions

Getting Started

Change Revisions

Revision 232990:

Revision 232990 by RFC1989 on

Revision 286629:

Revision 286629 by jasssonpet on

Title:
Getting Started
Getting Started
Slug:
AJAX/Getting_Started
AJAX/Getting_Started
Tags:
AJAX, NeedsTechnicalReview, XMLHttpRequest
AJAX, NeedsTechnicalReview, XMLHttpRequest
Content:

Revision 232990
Revision 286629
n10    <h3>n10    <h3 id="What's_AJAX?">
n25    <h3>n25    <h3 id="Step_1_.E2.80.93_How_to_make_an_HTTP_request">
n89    <h3>n89    <h3 id="Step_2_.E2.80.93_Handling_the_server_response">
n152    <h3>n152    <h3 id="Step_3_.E2.80.93_A_Simple_Example">
n195    } else {n195      } else {
196      alert('There was a problem with the request.');196        alert('There was a problem with the request.');
197    }197      }
198  }198    }
199}199  }
200} //missing closing bracket added by bwalton 5/11/11.
n229      <strong>Note 4</strong>: In the event of a communication ern228      <strong>Note 4</strong>: In the event of a communication er
>ror (such as the webserver going down), an exception will be thro>ror (such as the webserver going down), an exception will be thro
>wn in the <code>onreadystatechange</code> method when attempting >wn in the <code>onreadystatechange</code> method when attempting 
>to access the <code>status</code> field. Make sure that you wrap >to access the <code>status</code> field. Make sure that you wrap 
>your if...then statement in a try...catch. (See: {{ Bug("238559")>your if...then statement in a try...catch. (See: {{ Bug(238559) }
> }}).>}).
n247    <h3>n246    <h3 id="Step_4_.E2.80.93_Working_with_the_XML_response">
t281    <h3>t280    <h3 id="Step_5_.E2.80.93_Working_with_data">

Back to History