diff --git a/django_ajax/static/django_ajax/js/jquery.ajax.js b/django_ajax/static/django_ajax/js/jquery.ajax.js
index <HASH>..<HASH> 100644
--- a/django_ajax/static/django_ajax/js/jquery.ajax.js
+++ b/django_ajax/static/django_ajax/js/jquery.ajax.js
@@ -30,7 +30,7 @@ var ajax = function (url, options) {
     // If url is an object, simulate pre-1.5 signature
     if ( typeof url === "object" ) {
         options = url;
-        url = undefined;
+        url = options.url;
     }
 
     // Force options to be an object
Fixed error when the url  is passed by the options parameter.