Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing AjaxOptions #259

Merged
merged 2 commits into from Oct 10, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
72 changes: 72 additions & 0 deletions src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs
Expand Up @@ -32,6 +32,18 @@ public sealed class jQueryAjaxOptions {
public jQueryAjaxOptions(params object[] nameValuePairs) {
}

/// <summary>
/// Gets or sets the content type sent in the request header that tells the server what kind of response it will accept in return.
/// </summary>
[IntrinsicProperty]
public Dictionary<string, string> Accepts {
get {
return null;
}
set {
}
}

/// <summary>
/// Gets or sets whether the request is async.
/// </summary>
Expand Down Expand Up @@ -81,6 +93,18 @@ public sealed class jQueryAjaxOptions {
}
}

/// <summary>
/// Gets or sets a map of string/regular-expression pairs that determine how jQuery will parse the response, given its content type.
/// </summary>
[IntrinsicProperty]
public Dictionary<string, RegularExpression> Contents {
get {
return null;
}
set {
}
}

/// <summary>
/// Gets or sets the content type of the data sent to the server.
/// </summary>
Expand All @@ -105,6 +129,30 @@ public sealed class jQueryAjaxOptions {
}
}

/// <summary>
/// Gets or sets a map of dataType-to-dataType converters.
/// </summary>
[IntrinsicProperty]
public Dictionary<string, Func<string, object>> Converters {
get {
return null;
}
set {
}
}

/// <summary>
/// Gets or sets if you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true
/// </summary>
[IntrinsicProperty]
public bool CrossDomain {
get {
return false;
}
set {
}
}

/// <summary>
/// Gets or sets the data to be sent to the server.
/// </summary>
Expand Down Expand Up @@ -153,6 +201,18 @@ public sealed class jQueryAjaxOptions {
}
}

/// <summary>
/// Gets or sets if a map of additional header key/value pairs to send along with the request.
/// </summary>
[IntrinsicProperty]
public Dictionary<string, string> Headers {
get {
return null;
}
set {
}
}

/// <summary>
/// Gets or sets whether the request is successful only if its been modified since
/// the last request.
Expand Down Expand Up @@ -251,6 +311,18 @@ public sealed class jQueryAjaxOptions {
}
}

/// <summary>
/// Gets or sets a map of numeric HTTP codes and functions to be called when the response has the corresponding code.
/// </summary>
[IntrinsicProperty]
public Dictionary<int, Action> StatusCode {
get {
return null;
}
set {
}
}

/// <summary>
/// Gets or sets the function to invoke upon successful completion of the request.
/// </summary>
Expand Down