<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='docs.xsl'?>
<docs>
<method cat='Ajax' type='XMLHttpRequest' short='Load a remote page using an HTTP GET request.' name='$.get'>
<desc>Load a remote page using an HTTP GET request.

This is an easy way to send a simple GET request to a server
without having to use the more complex $.ajax function. It
allows a single callback function to be specified that will
be executed when the request is complete (and only if the response
has a successful response code). If you need to have both error
and success callbacks, you may want to use $.ajax.</desc>
<params type='String' name='url'>
<desc>The URL of the page to load.</desc>
</params>
<params type='Map' name='params'>
<desc>(optional) Key/value pairs that will be sent to the server.</desc>
</params>
<params type='Function' name='callback'>
<desc>(optional) A function to be executed whenever the data is loaded successfully.</desc>
</params>
<examples>
<code>$.get("test.cgi");</code>
</examples>
<examples>
<code>$.get("test.cgi", { name: "John", time: "2pm" } );</code>
</examples>
<examples>
<code>$.get("test.cgi", function(data){
  alert("Data Loaded: " + data);
});</code>
</examples>
<examples>
<code>$.get("test.cgi",
  { name: "John", time: "2pm" },
  function(data){
    alert("Data Loaded: " + data);
  }
);</code>
</examples>
</method></docs>
