I see your point, it's completely inconsistent. It's a wiki, anyone
can fix that. How about this?

jQuery.ajax()
Start an HTTP request with custom parameters
.load()
Load HTML from an URL and insert into the selected element(s)
jQuery.get()
Load data using an HTTP GET request
jQuery.getJSON()
Load JSON data using an HTTP GET request
jQuery.getScript()
Load JavaScript code using an HTTP GET request and execute it
jQuery.post()
Load data using a POST request

On Aug 10, 1:22 am, rickoshay <treesp...@gmail.com> wrote:
> Here are the descriptions for the Ajax methods:
>
> load -- Loads HTML from a remote file ...
> ajax -- Load a remote page ...
> get -- Load a remote page...
> getScript -- Load and execute a local javascript file...
> post -- Load a remote page...
>
> So, if we want arbitrary HTML we have to use "load", but if we want a
> whole "page" (where is that defined?)  we have to use "ajax", "get" or
> "post"?
>
> The "execute script" function (called getScript for some reason) only
> works with local "files"? I believe it will work with any URI (local
> or remote) returning JavaScript (assuming same origin policy of
> course), and whether it came from a file isn't known to the caller.
>
> These functions should describe the type of HTTP request they make,
> and skip references to "pages" and "files".

Reply via email to