#1371 new
Sergiu Dumitriu

Add support for using "window.location" as the target URL of an AJAX request

Reported by Sergiu Dumitriu | August 18th, 2012 @ 03:00 AM

Trying to make a request to the same URL as the current document would appear to be possible using:

  new Ajax.Request(window.location, {'some': 'params'});

But that will fail with with an error: this.url.match is not a function, triggered inside isSameOrigin where the target URL is expected to be a String, and not a Location object.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket