This repository was archived by the owner on Mar 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathautocomplete_options.html
More file actions
397 lines (319 loc) · 24 KB
/
autocomplete_options.html
File metadata and controls
397 lines (319 loc) · 24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Plugins/Autocomplete,Plugins/Autocomplete/setOptions,Plugins/Autocomplete/flushCache,Plugins/Autocomplete/search,Plugins/Autocomplete/result,Plugins/Autocomplete/autocomplete" />
<title>Plugins/Autocomplete - jQuery JavaScript Library</title>
<link rel="stylesheet" href="../css/reset.css" type="text/css" />
<link rel="stylesheet" href="../css/screen.css" type="text/css" />
<link rel="stylesheet" href="../css/main.css" type="text/css" />
<link rel="stylesheet" href="../css/jquery.tabs.css" type="text/css" />
<!--[if lte IE 7]>
<link rel="stylesheet" href="../css/jquery.tabs-ie.css" type="text/css" media="projection, screen"/>
<![endif]-->
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script src="../js/jquery.tabs.js"></script>
<script>$(function(){
$("div[id=examples]").each(function(){
$(this).siblings("div:first").find("div.desc").after(
$(this).find("div.example:has(#demo):first").remove().clone());
if ( !$("div.example", this).length )
$(this).remove();
});
$("div.entry")
.children("p").remove().end()
.find("ul:first li").each(function(){
if ( !$(this).parent().siblings( $("a",this).attr("href") ).length )
$(this).remove();
}).end()
.not(".ui")
.tabs();
$("div.args > br").remove();
$("div.example")
.children("p").remove().end()
.tabs();
var keywords = "String,Number,Object,Options,Array,Function,Callback,Selector,Event,Element,Integer,Float,Boolean".split(",");
$("td.default span, td.type").each(function(){
var html = this.innerHTML;
jQuery.each(keywords, function(i,key){
html = html.replace(new RegExp(key, "ig"), "<a href='/Types#" + key + "'>" + key + "</a>");
});
this.innerHTML = html;
});
$("div[id=source]").each(function(){
var source = $("pre", this).html()
.replace(/<\/?a.*?>/ig, "")
.replace(/<\/?strong.*?>/ig, "")
.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
//var items = [];
//source = source.replace(/\s*<(link|script).*?>\s\*/g, function(m){
//items.push(m);
//return "";
//}).replace("</head>", items.join("") + "</head>")
//*/
var iframe = document.createElement("iframe");
iframe.src = "/index-blank.html";
iframe.width = "100%";
iframe.height = $(this).prev().attr("rel") || "125";
iframe.style.border = "none";
$(this).prev().append(iframe);
$(window).load(function(){
var doc = iframe.contentDocument || iframe.contentWindow.document;
source = source
.replace(/<script>([^<])/g,"<script>window.onload = (function(){\ntry{$1")
.replace(/([^>])<\/sc/g, '$1\n}catch(e){}});</sc');
source = source
.replace("</head>", "<style>html,body{border:0; margin:0; padding:0;}</style></head>");
doc.open();
doc.write( source );
doc.close();
});
});
});</script>
<script type="text/javascript" src="http://static.jquery.com/files/rocker/scripts/custom.js"></script>
<link rel="stylesheet" type="text/css" media="print" href="../css/commonPrint.css" />
<!--[if lt IE 5.5000]><style type="text/css">@import "/skins/monobook/IE50Fixes.css";</style><![endif]-->
<!--[if IE 5.5000]><style type="text/css">@import "/skins/monobook/IE55Fixes.css";</style><![endif]-->
<!--[if IE 6]><style type="text/css">@import "/skins/monobook/IE60Fixes.css";</style><![endif]-->
<!--[if IE 7]><style type="text/css">@import "/skins/monobook/IE70Fixes.css?1";</style><![endif]-->
<!--[if lt IE 7]><script type="text/javascript" src="/skins/common/IEFixes.js"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<!-- Head Scripts -->
</head>
<body id="jq-interior" class="mediawiki ns-0 ltr">
<div id="jq-siteContain">
<div id="jq-header">
<a id="jq-siteLogo" href="http://jquery.com/" title="jQuery Home"><img src="../img/logo_jquery_215x53.gif" width="215" height="53" alt="jQuery: Write Less, Do More." /></a>
<div id="jq-primaryNavigation">
<ul>
<li class="jq-jquery jq-current"><a href="http://jquery.com/" title="jQuery Home">jQuery</a></li>
<li class="jq-plugins"><a href="http://plugins.jquery.com/" title="jQuery Plugins">Plugins</a></li>
<li class="jq-ui"><a href="http://jqueryui.com/" title="jQuery UI">UI</a></li>
<li class="jq-meetup"><a href="http://meetups.jquery.com/" title="jQuery Meetups">Meetups</a></li>
<li class="jq-forum"><a href="http://forum.jquery.com/" title="jQuery Forum">Forum</a></li>
<li class="jq-blog"><a href="http://blog.jquery.com/" title="jQuery Blog">Blog</a></li>
<li class="jq-about"><a href="http://jquery.org/about" title="About jQuery">About</a></li>
<li class="jq-donate"><a href="http://jquery.org/donate" title="Donate to jQuery">Donate</a></li>
</ul>
</div><!-- /#primaryNavigation -->
<div id="jq-secondaryNavigation">
<ul>
<li class="jq-download jq-first"><a href="http://docs.jquery.com/Downloading_jQuery">Download</a></li>
<li class="jq-documentation jq-current"><a href="http://docs.jquery.com/">Documentation</a></li>
<li class="jq-tutorials"><a href="http://docs.jquery.com/Tutorials">Tutorials</a></li>
<li class="jq-bugTracker"><a href="http://dev.jquery.com/">Bug Tracker</a></li>
<li class="jq-discussion jq-last"><a href="http://docs.jquery.com/Discussion">Discussion</a></li>
</ul>
</div><!-- /#secondaryNavigation -->
<h1>Documentation</h1>
<form id="jq-primarySearchForm" action="/Special:Search">
<div>
<input type="hidden" value="1" name="ns0"/>
<label for="primarySearch">Search <span class="jq-jquery">jQuery</span></label>
<input type="text" value="" accesskey="f" title="Search jQuery" name="search" id="jq-primarySearch"/>
<button type="submit" name="go" id="jq-searchGoButton"><span>Go</span></button>
</div>
</form>
</div><!-- /#header -->
<div id="jq-content" class="jq-clearfix">
<div id="jq-interiorNavigation">
<div class='jq-portlet' id='jq-p-Getting-Started'>
<h5>Getting Started</h5>
<div class='jq-pBody'>
<ul>
<li id="jq-n-Main-Page"><a href="/Main_Page">Main Page</a></li>
<li id="jq-n-Downloading-jQuery"><a href="/Downloading_jQuery">Downloading jQuery</a></li>
<li id="jq-n-How-jQuery-Works"><a href="/How_jQuery_Works">How jQuery Works</a></li>
<li id="jq-n-FAQ"><a href="/Frequently_Asked_Questions">FAQ</a></li>
<li id="jq-n-Tutorials"><a href="/Tutorials">Tutorials</a></li>
<li id="jq-n-Using-jQuery-with-Other-Libraries"><a href="/Using_jQuery_with_Other_Libraries">Using jQuery with Other Libraries</a></li>
<li id="jq-n-Variable-Types"><a href="/Types">Variable Types</a></li>
</ul>
</div>
</div>
<div class='jq-portlet' id='jq-p-API-Reference'>
<h5>API Reference</h5>
<div class='jq-pBody'>
<ul>
<li id="jq-n-jQuery-Core"><a href="/Core">jQuery Core</a></li>
<li id="jq-n-Selectors"><a href="/Selectors">Selectors</a></li>
<li id="jq-n-Attributes"><a href="/Attributes">Attributes</a></li>
<li id="jq-n-Traversing"><a href="/Traversing">Traversing</a></li>
<li id="jq-n-Manipulation"><a href="/Manipulation">Manipulation</a></li>
<li id="jq-n-CSS"><a href="/CSS">CSS</a></li>
<li id="jq-n-Events"><a href="/Events">Events</a></li>
<li id="jq-n-Effects"><a href="/Effects">Effects</a></li>
<li id="jq-n-Ajax"><a href="/Ajax">Ajax</a></li>
<li id="jq-n-Utilities"><a href="/Utilities">Utilities</a></li>
<li id="jq-n-jQuery-UI"><a href="/UI">jQuery UI</a></li>
</ul>
</div>
</div>
<div class='jq-portlet' id='jq-p-Plugins'>
<h5>Plugins</h5>
<div class='jq-pBody'>
<ul>
<li id="jq-n-Plugin-Repository"><a href="http://jquery.com/plugins/">Plugin Repository</a></li>
<li id="jq-n-Authoring"><a href="/Plugins/Authoring">Authoring</a></li>
</ul>
</div>
</div>
<div class='jq-portlet' id='jq-p-Support'>
<h5>Support</h5>
<div class='jq-pBody'>
<ul>
<li id="jq-n-Mailing-List-and-Chat"><a href="/Discussion">Mailing List and Chat</a></li>
<li id="jq-n-Submit-New-Bug"><a href="http://jquery.com/dev/bugs/new/">Submit New Bug</a></li>
<li id="jq-n-Commercial-Support"><a href="/Commercial_Support">Commercial Support</a></li>
</ul>
</div>
</div>
<div class='jq-portlet' id='jq-p-About-jQuery'>
<h5>About jQuery</h5>
<div class='jq-pBody'>
<ul>
<li id="jq-n-Contributors"><a href="/Contributors">Contributors</a></li>
<li id="jq-n-History-of-jQuery"><a href="/History_of_jQuery">History of jQuery</a></li>
<li id="jq-n-Sites-Using-jQuery"><a href="/Sites_Using_jQuery">Sites Using jQuery</a></li>
<li id="jq-n-Browser-Compatibility"><a href="/Browser_Compatibility">Browser Compatibility</a></li>
<li id="jq-n-License"><a href="/Licensing">Licensing</a></li>
<li id="jq-n-Donate"><a href="/Donate">Donate</a></li>
</ul>
</div>
</div>
<div class="jq-portlet" id="p-tb">
<h5>Toolbox</h5>
<div class="jq-pBody">
<ul>
<li id="t-whatlinkshere"><a href="/index.php?title=Special:Whatlinkshere&target=Plugins%2FAutocomplete">What links here</a></li>
<li id="t-recentchangeslinked"><a href="/index.php?title=Special:Recentchangeslinked&target=Plugins%2FAutocomplete">Related changes</a></li>
<li id="t-upload"><a href="/Special:Upload">Upload file</a></li>
<li id="t-specialpages"><a href="/Special:Specialpages">Special pages</a></li>
<li id="t-print"><a href="/action/render/Plugins/Autocomplete">Printable version</a></li> <li id="t-permalink"><a href="/index.php?title=Plugins/Autocomplete&oldid=16741">Permanent link</a></li> </ul>
</div>
</div>
<div id="jq-p-cactions" class="jq-portlet">
<h5>Views</h5>
<div class="jq-pBody">
<ul>
<li id="jq-ca-nstab-main" class="selected"><a href="/Plugins/Autocomplete">Article</a></li>
<li id="jq-ca-talk" class="new"><a href="/action/edit/Talk:Plugins/Autocomplete">Discussion</a></li>
<li id="jq-ca-edit"><a href="/action/edit/Plugins/Autocomplete">Edit</a></li>
<li id="jq-ca-history"><a href="/action/history/Plugins/Autocomplete">History</a></li>
</ul>
</div>
</div>
<div class="jq-portlet" id="jq-p-personal">
<h5>Personal tools</h5>
<div class="jq-pBody">
<ul>
<li id="jq-pt-login"><a href="/index.php?title=Special:Userlogin&returnto=Plugins/Autocomplete">Log in / create account</a></li>
</ul>
</div>
</div>
</div><!-- /#interiorNavigation -->
<div id="jq-primaryContent">
<div id="column-content">
<div id="docs-content">
<a name="top" id="top"></a>
<!--<div style="background:#efefff; border:#9f9fff 1px solid; padding: 10px;"><strong>UPDATE:</strong> The jQuery API documentation has been completely rewritten and moved to <a href="http://api.jquery.com/">api.jquery.com</a>. More details <a href="http://jquery14.com/pre-release-1/new-jquery-api-site">can be found on the jQuery blog</a>.</div>-->
<h1 class="firstHeading">Plugins/Autocomplete/autocomplete</h1>
<div id="bodyContent">
<h3 id="siteSub">From jQuery JavaScript Library</h3>
<div id="contentSub"></div>
<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div> <!-- start content -->
<p>« <a href="../index.html" title="Plugins/Autocomplete">Back to Plugins/Autocomplete</a><div class="api"><div>
</div><a name="url or dataoptions"></a><div class="section-edit">[<a href="/action/edit/Plugins/Autocomplete/autocomplete">edit</a>]</div>
</p>
<a name="autocomplete.28.C2.A0url_or_data.2C.C2.A0.5Boptions.5D_.29"></a><h3> <strong class="selflink">autocomplete</strong>( url or data, <span class="optional">[</span>options<span class="optional">]</span> ) </h3>
<p><div class="entry">
<ul class="tabs-nav">
<li><a href="#overview"><span>Overview</span></a></li>
<li><a href="#toptions"><span>Options</span></a></li>
<li><a href="#examples"><span>Examples</span></a></li>
<li><a href="#discuss" class="tabs-disabled"><span>Discuss</span></a></li>
</ul>
<div id="overview" class="tabs-container">
</p>
<div class="desc"><div>Makes an input or textarea autocompleteable.</div>
<div class="longdesc">The first argument can be an URL for remote data or an an array for local data.
<p>For remote data:
When the user starts typing, a request is send to the specified backend ("my_autocomplete_backend.php"),
with a GET parameter named q that contains the current value of the input box and a parameter "limit" with
the value specified for the max option.
</p><p>A value of "foo" would result in this request url: my_autocomplete_backend.php?q=foo&limit=10
</p><p>The result must return with one value on each line. The result is presented in the order
the backend sends it.
</p><p>Formatting options:
</p>
Remote options:</div></div><div class="args"><b class="args">Arguments:</b><table class="args" cellspacing="0"><tr class="option"><th>url or data</th><td class="type">String, Array</td><td class="default"></td></tr><tr><td colspan="3" class="desc">An URL pointing at a remote resource or local data as an array.</td></tr><br /><tr class="option"><th>options<span class="optional"> (Optional)</span></th><td class="type">Options</td><td class="default"></td></tr><tr><td colspan="3" class="desc">A set of key/value pairs that configure the autocomplete. All options are optional.</td></tr></table></div> </div>
<p><br />
<div id="toptions" class="options tabs-container"><b class="options">Options:</b><table class="options" cellspacing="0"><thead><tr><th>Name</th><th>Type</th></tr></thead><tbody>
</p><p>
<tr class="option"><th>afterItemSelected</th><td class="type">Function</td><td class="default"><b>Default:</b> <span>none</span></td></tr><tr><td colspan="3" class="desc">Optional callback for when an item is selected from the autocomplete results. The function is passed the selected data item along with the input element.</td></tr>
<tr class="option"><th>autoFill</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>false</span></td></tr><tr><td colspan="3" class="desc">Fill the textinput while still selecting a value, replacing the value if more is typed or something else is selected.</td></tr>
<tr class="option"><th>cacheLength</th><td class="type">Number</td><td class="default"><b>Default:</b> <span>10</span></td></tr><tr><td colspan="3" class="desc">The number of backend query results to store in cache. If set to 1 (the current result), no caching will happen. Must be >= 1.</td></tr>
<tr class="option"><th>delay</th><td class="type">Number</td><td class="default"><b>Default:</b> <span>400 for remote, 10 for local</span></td></tr><tr><td colspan="3" class="desc">The delay in milliseconds the autocompleter waits after a keystroke to activate itself.</td></tr>
<tr class="option"><th>extraParams</th><td class="type">Object</td><td class="default"></td></tr><tr><td colspan="3" class="desc">Extra parameters for the backend. If you were to specify { bar:4 }, the autocompleter would call my_autocomplete_backend.php?q=foo&bar=4 (assuming the input box contains "foo"). The param can be a function that is called to calculate the param before each request.</td></tr>
<tr class="option"><th>formatItem</th><td class="type">Function</td><td class="default"><b>Default:</b> <span>Assumes that a single row contains a single value.</span></td></tr><tr><td colspan="3" class="desc">Provides advanced markup for an item. For each row of results, this function will be called. The returned value will be displayed inside an LI element in the results list. Autocompleter will provide 4 parameters: the results row, the position of the row in the list of results (starting at 1), the number of items in the list of results and the search term.</td></tr>
<tr class="option"><th>formatMatch</th><td class="type">Function</td><td class="default"><b>Default:</b> <span>formatItem is used</span></td></tr><tr><td colspan="3" class="desc">Use this option if you want to limit the data that autocomplete searches for matches. For example, there may be items you want displayed to the user, but don't want included in the data that's searched. Gets called with the same arguments as formatItem.</td></tr>
<tr class="option"><th>formatResult</th><td class="type">Function</td><td class="default"><b>Default:</b> <span>Assumes either plain data to use as result or uses the same value as provided by formatItem.</span></td></tr><tr><td colspan="3" class="desc">Similar to formatItem, but provides the formatting for the value to be put into the input field. Again three arguments: Data, position (starting with one) and total number of data.</td></tr>
<tr class="option"><th>highlight</th><td class="type">Boolean, Function</td><td class="default"><b>Default:</b> <span>Wraps the search term in a <strong> element </span></td></tr><tr><td colspan="3" class="desc">Whether and how to highlight matches in the select box. Set to false to disable. Set to a function to customize. The function gets the value as the first argument and the search term as the second and must return the formatted value.</td></tr>
<tr class="option"><th>matchCase</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>false</span></td></tr><tr><td colspan="3" class="desc">Whether or not the comparison is case sensitive. Important only if you use caching.</td></tr>
<tr class="option"><th>matchContains</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>false</span></td></tr><tr><td colspan="3" class="desc">Whether or not the comparison looks inside (i.e. does "ba" match "foo bar") the search results. Important only if you use caching. Don't mix with autofill.</td></tr>
<tr class="option"><th>matchSubset</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>true</span></td></tr><tr><td colspan="3" class="desc">Whether or not the autocompleter can use a cache for more specific queries. This means that all matches of "foot" are a subset of all matches for "foo". Usually this is true, and using this options decreases server load and increases performance. Only useful with cacheLength settings bigger than one, like 10.</td></tr>
<tr class="option"><th>max</th><td class="type">Number</td><td class="default"><b>Default:</b> <span>10</span></td></tr><tr><td colspan="3" class="desc">Limit the number of items in the select box. Is also sent as a "limit" parameter with a remote request.</td></tr>
<tr class="option"><th>minChars</th><td class="type">Number</td><td class="default"><b>Default:</b> <span>1</span></td></tr><tr><td colspan="3" class="desc">The minimum number of characters a user has to type before the autocompleter activates.</td></tr>
<tr class="option"><th>multiple</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>false</span></td></tr><tr><td colspan="3" class="desc">Whether to allow more than one autocompleted-value to enter.</td></tr>
<tr class="option"><th>multipleSeparator</th><td class="type">String</td><td class="default"><b>Default:</b> <span>" " <em>(space)</em></span></td></tr><tr><td colspan="3" class="desc">Seperator to put between values when using multiple option.</td></tr>
<tr class="option"><th>mustMatch</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>false</span></td></tr><tr><td colspan="3" class="desc">If set to true, the autocompleter will only allow results that are presented by the backend. Note that illegal values result in an empty input box.</td></tr>
<tr class="option"><th>scroll</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>true </span></td></tr><tr><td colspan="3" class="desc">Whether to scroll when more results than configured via scrollHeight are available.</td></tr>
<tr class="option"><th>scrollHeight</th><td class="type">Number</td><td class="default"><b>Default:</b> <span>180</span></td></tr><tr><td colspan="3" class="desc">height of scrolled autocomplete control in pixels</td></tr>
<tr class="option"><th>selectFirst</th><td class="type">Boolean</td><td class="default"><b>Default:</b> <span>true</span></td></tr><tr><td colspan="3" class="desc">If this is set to true, the first autocomplete value will be automatically selected on tab/return, even if it has not been handpicked by keyboard or mouse action. If there is a handpicked (highlighted) result, that result will take precedence.</td></tr>
<tr class="option"><th>width</th><td class="type">Number</td><td class="default"><b>Default:</b> <span>width of the input element</span></td></tr><tr><td colspan="3" class="desc">Specify a custom width for the select box.</td></tr>
</p><p><br />
</tbody></table></div>
</p><p><br />
</p><p></div></div>
</p><!--
Pre-expand include size: 17313 bytes
Post-expand include size: 24470 bytes
Template argument size: 13775 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2553-0!1!0!!en!2 and timestamp 20100825132531 -->
<div class="printfooter">
Retrieved from "<a href="http://docs.jquery.com/Plugins/Autocomplete/autocomplete">http://docs.jquery.com/Plugins/Autocomplete/autocomplete</a>"</div>
<div id="catlinks"><p class='catlinks'><a href="/index.php?title=Special:Categories&article=Plugins%2FAutocomplete%2Fautocomplete" title="Special:Categories">Categories</a>: <span dir='ltr'><a href="/action/edit/Category:Plugins/Autocomplete/autocomplete" class="new" title="Category:Plugins/Autocomplete/autocomplete">Plugins/Autocomplete/autocomplete</a></span> | <span dir='ltr'><a href="/action/edit/Category:API" class="new" title="Category:API">API</a></span></p></div> <!-- end content -->
<div class="visualClear"></div>
</div>
</div> <!--docs-content-->
</div>
</div><!-- /#primaryContent -->
</div><!-- /#content -->
<div id="jq-footer" class="jq-clearfix">
<div id="jq-credits">
<p id="jq-copyright">© 2010 <a href="http://jquery.org/">The jQuery Project</a></p>
<p id="jq-hosting">Sponsored by <a href="http://mediatemple.net" class="jq-mediaTemple">Media Temple</a> and <a href="http://jquery.org/sponsors">others</a>.</p>
</div>
<div id="jq-footerNavigation">
<ul>
<li class="jq-download jq-first"><a href="http://docs.jquery.com/Downloading_jQuery">Download</a></li>
<li class="jq-documentation jq-current"><a href="http://docs.jquery.com/">Documentation</a></li>
<li class="jq-tutorials"><a href="http://docs.jquery.com/Tutorials">Tutorials</a></li>
<li class="jq-bugTracker"><a href="http://dev.jquery.com/">Bug Tracker</a></li>
<li class="jq-discussion jq-last"><a href="http://docs.jquery.com/Discussion">Discussion</a></li>
</ul>
</div><!-- /#secondaryNavigation -->
</div><!-- /#footer -->
</div><!-- /#siteContain -->
<script type="text/javascript">
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1076265-1']); _gaq.push(['_trackPageview']); _gaq.push(['_setDomainName', '.jquery.com']);
(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);})();
</script>
</body>
<!-- Cached 20100825132601 -->
</html>