Commit b91eef07 authored by Yehuda Katz's avatar Yehuda Katz

Adds support for username and password to $.ajax

parent 94875384
......@@ -144,7 +144,9 @@ jQuery.extend({
contentType: "application/x-www-form-urlencoded",
processData: true,
async: true,
data: null
data: null,
username: null,
password: null
},
// Last-Modified header cache for next request
......@@ -258,7 +260,7 @@ jQuery.extend({
var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
// Open the socket
xml.open(s.type, s.url, s.async);
xml.open(s.type, s.url, s.async, s.username, s.password);
// Need an extra try/catch for cross domain requests in Firefox 3
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment