Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion entries/jQuery.ajax.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ $.ajax({
<type name="Function"/>
<desc>Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. <strong>As of jQuery 1.5</strong>, you can also use a function for this setting, in which case the value of <code>jsonpCallback</code> is set to the return value of that function. </desc>
</property>
<property default="'GET'" name="method" type="String" added="1.9.0">
<desc>The HTTP method to use for the request (e.g. "POST", "GET", "PUT"); default is "GET".</desc>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it was just takeover from the type option, but some nitpicks.

default is "GET".

Seems like weird to say this again, as we already indicate that just a line above that: http://gyazo.com/3e298875859e35d8dfdcef35f71ab3ac

(e.g. "POST", "GET", "PUT")

Maybe wrap these in <code> elements.

</property>
<property name="mimeType" type="String" added="1.5.1">
<desc>A mime type to override the <abbr title="XMLHttpRequest">XHR</abbr> mime type.</desc>
</property>
Expand Down Expand Up @@ -144,7 +147,7 @@ $.ajax({
<desc>Set this to <code>true</code> if you wish to use the traditional style of <a href="/jQuery.param/">param serialization</a>.</desc>
</property>
<property default="'GET'" name="type" type="String">
<desc>The type of request to make (e.g. "POST", "GET", "PUT"); default is "GET". </desc>
<desc>An alias for <code>method</code>. You should use <code>type</code> if you're using versions of jQuery prior to 1.9.0.</desc>
</property>
<property default="The current page" name="url" type="String">
<desc> A string containing the URL to which the request is sent.</desc>
Expand Down