On Aug 19, 12:10 am, Pops <[EMAIL PROTECTED]> wrote:
> The default is GET, however, if you pass the 2nd parameter as URL data
> and not a function, then jQuery assumes a POST is desired.   Studying
> this seems odd. I can take a swag at the reasons:
>
>    - As a "poor's man" security consideration against ajax
> injections.  and
>    - If you are sending JSON data, its cleaner to send non name=value
> pair data as a post.

One of the negative side-effects is, however, that POST is not
configured consistently across servers. For example, i had the example
same problem as the OP... i was trying to load() an HTML file and it
worked on my local system. When, however, i uploaded it to my hoster
the code suddenly failed. Firebug revealed that POST was erroring out
on my hoster because POST was not allowed for HTML files on that
server. So i had to rework the code to use get(). i remember trying to
set GET as the default ajax behaviour and that load() ignored that.

Reply via email to