I have not looked at the code in depth, but I know that 1.1.4 supports
recursive $.extend(), which might look at the fields inside your
document.location object and return something the function was not
expecting.

On 8/27/07, drew <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I've been using $.ajax in jQuery 1.1.3 to make Ajax requests, and was
> using document.location to set the url to send the request to, like
> so:
>
> $.ajax({
>   url: document.location,
>   data: data,
>   dataType: 'json',
>   type: 'post',
>   success: function(response_data) {
>     // do something...
>   }
> });
>
> This method of setting the url worked fine for me under 1.1.3, even
> though I assume it is technically incorrect, because document.location
> returns a location object rather than a string. Upon updating to
> jQuery 1.1.4, the ajax requests still "worked" (the request succeeded,
> the callback was called, and did its thing), but after the request the
> page would reload. After much fiddling and confusion I changed
> document.location to document.location.toString() and things worked
> fine, as I would have expected them to.
>
> I don't know if this bug or not, but I didn't see anything in the
> changelog for 1.1.4 about this behavior and was wondering why this
> happened, and if it should be expected.
>
> Thanks,
> Drew
>
>

Reply via email to