You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>A string in JavaScript has some built-in methods to manipulate the string, though the result is always a new string - or something else, eg. split returns an <ahref="http://api.jquery.com/Types/#Array" title="Types">array</a>.
115
+
<p>A string in JavaScript has some built-in methods to manipulate the string, though the result is always a new string - or something else, eg. split returns an <ahref="/Types/#Array" title="Types">array</a>.
<p>Note that for-in-loop can be spoiled by extending Object.prototype (see <ahref="http://erik.eae.net/archives/2005/06/06/22.13.54" class="external text" title="http://erik.eae.net/archives/2005/06/06/22.13.54">Object.prototype is verboten</a>) so take care when using other libraries.
293
293
</p>
294
-
<p>jQuery provides a generic <ahref="http://api.jquery.com/jQuery.each/"><em>each</em> function</a> to iterate over properties of objects, as well as elements of arrays:
294
+
<p>jQuery provides a generic <ahref="/jQuery.each/"><em>each</em> function</a> to iterate over properties of objects, as well as elements of arrays:
295
295
</p>
296
296
<pre><codedata-lang="javascript">jQuery.each( obj, function( key, value ) {
<p>jQuery provides a generic <ahref="http://api.jquery.com/jQuery.each/"><em>each</em> function</a> to iterate over element of arrays, as well as properties of objects:
363
+
<p>jQuery provides a generic <ahref="/jQuery.each/"><em>each</em> function</a> to iterate over element of arrays, as well as properties of objects:
364
364
</p>
365
365
<pre><codedata-lang="javascript">var x = [ 1, 2, 3 ];
<p>A selector is used in jQuery to select DOM elements from a DOM document. That document is, in most cases, the DOM document present in all browsers, but can also be an XML document received via AJAX.
546
546
</p>
547
-
<p>The selectors are a composition of CSS and custom additions. All selectors available in jQuery are documented on the <ahref="http://api.jquery.com/category/selectors" title="Selectors">Selectors API page</a>.
547
+
<p>The selectors are a composition of CSS and custom additions. All selectors available in jQuery are documented on the <ahref="/category/selectors/" title="Selectors">Selectors API page</a>.
548
548
</p>
549
549
<p>There are lot of plugins that leverage jQuery's selectors in other ways. The validation plugin accepts a selector to specify a dependency, whether an input is required or not:
<p>jQuery's event system normalizes the event object according to W3C standards. The event object is guaranteed to be passed to the event handler (no checks for window.event required). It normalizes the target, relatedTarget, which, metaKey and pageX/Y properties and provides both stopPropagation() and preventDefault() methods.
561
561
</p>
562
-
<p>Those properties are all documented, and accompanied by examples, on the <ahref="http://api.jquery.com/category/events/event-object/" title="Events">Event object</a> page.
562
+
<p>Those properties are all documented, and accompanied by examples, on the <ahref="/category/events/event-object/" title="Events">Event object</a> page.
563
563
</p>
564
564
<p>The standard events in the Document Object Model are: <code>blur</code>, <code>focus</code>, <code> load</code>, <code>resize</code>, <code>scroll</code>, <code>unload</code>, <code>beforeunload</code>, <code>click</code>, <code>dblclick</code>, <code>mousedown</code>, <code>mouseup</code>, <code>mousemove</code>, <code>mouseover</code>, <code>mouseout</code>, <code>mouseenter</code>, <code>mouseleave</code>, <code>change</code>, <code>select</code>, <code>submit</code>, <code>keydown</code>, <code>keypress,</code> and <code>keyup</code>. Since the DOM event names have predefined meanings for some elements, using them for other purposes is not recommended. jQuery's event model can trigger an event by any name on an element, and it is propagated up the DOM tree to which that element belongs, if any.
<p>Google does not appear to have an official page for their XHR documentation for Chrome. As of version 5, Chrome does not support the use of the file protocol for XHR requests.
608
608
</p>
609
609
<h2id="jqXHR"> jqXHR </h2>
610
-
<p>As of jQuery 1.5, the <ahref="http://api.jquery.com/jQuery.ajax/">$.ajax()</a> method returns the jqXHR object, which is a superset of the XMLHTTPRequest object. For more information, see the <ahref="http://api.jquery.com/jQuery.ajax/#jqXHR">jqXHR section of the $.ajax entry</a>
610
+
<p>As of jQuery 1.5, the <ahref="/jQuery.ajax/">$.ajax()</a> method returns the jqXHR object, which is a superset of the XMLHTTPRequest object. For more information, see the <ahref="/jQuery.ajax/#jqXHR">jqXHR section of the $.ajax entry</a>
611
611
</p>
612
612
<h2id="Deferred"> Deferred Object</h2>
613
-
<p>As of jQuery 1.5, the <ahref="http://api.jquery.com/category/deferred-object">Deferred</a> object provides a way to register multiple callbacks into self-managed callback queues, invoke callback queues as appropriate, and relay the success or failure state of any synchronous or asynchronous function.
613
+
<p>As of jQuery 1.5, the <ahref="/category/deferred-object/">Deferred</a> object provides a way to register multiple callbacks into self-managed callback queues, invoke callback queues as appropriate, and relay the success or failure state of any synchronous or asynchronous function.
614
614
</p>
615
615
<h2id="Promise"> Promise Object</h2>
616
-
<p>This object provides a subset of the methods of the <ahref="http://api.jquery.com/category/deferred-object">Deferred</a> object (<ahref="http://api.jquery.com/deferred.then/"><code>then</code></a>, <ahref="http://api.jquery.com/deferred.done/"><code>done</code></a>, <ahref="http://api.jquery.com/deferred.fail/"><code>fail</code></a>, <ahref="http://api.jquery.com/deferred.always"><code>always</code></a>, <ahref="http://api.jquery.com/deferred.pipe/"><code>pipe</code></a>. <ahref="http://api.jquery.com/deferred.isResolved/"><code>isResolved</code></a>, and <ahref="http://api.jquery.com/deferred.isRejected/"><code>isRejected</code></a>) to prevent users from changing the state of the Deferred.
616
+
<p>This object provides a subset of the methods of the <ahref="/category/deferred-object/">Deferred</a> object (<ahref="/deferred.then/"><code>then</code></a>, <ahref="/deferred.done/"><code>done</code></a>, <ahref="/deferred.fail/"><code>fail</code></a>, <ahref="/deferred.always/"><code>always</code></a>, <ahref="/deferred.pipe/"><code>pipe</code></a>. <ahref="/deferred.isResolved/"><code>isResolved</code></a>, and <ahref="/deferred.isRejected/"><code>isRejected</code></a>) to prevent users from changing the state of the Deferred.
617
617
</p>
618
618
<h2id="Callbacks">Callbacks Object</h2>
619
619
<p>A multi-purpose object that provides a powerful way to manage callback lists. It supports adding, removing, firing, and disabling callbacks. The Callbacks object is created and returned by the <code>$.Callbacks</code> function and subsequently returned by most of that function's methods. </p>
0 commit comments