|
0
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
|
2 |
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#"> |
|
|
3 |
<head> |
|
|
4 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
|
5 |
<title>API: history History (YUI Library)</title> |
|
|
6 |
|
|
|
7 |
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> |
|
|
8 |
<link rel="stylesheet" type="text/css" href="assets/api.css" /> |
|
|
9 |
|
|
|
10 |
<script type="text/javascript" src="assets/api-js"></script> |
|
|
11 |
<script type="text/javascript" src="assets/ac-js"></script> |
|
|
12 |
</head> |
|
|
13 |
|
|
|
14 |
<body id="yahoo-com"> |
|
|
15 |
|
|
|
16 |
<div id="doc3" class="yui-t2"> |
|
|
17 |
<div id="hd"> |
|
|
18 |
<h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1> |
|
|
19 |
<h3>history <span class="subtitle">3.0.0</span></h3> |
|
|
20 |
<a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
|
21 |
> <a href="./module_history.html" title="history">history</a> |
|
|
22 |
> History |
|
|
23 |
|
|
|
24 |
<form onsubmit="return false"> |
|
|
25 |
<div id="propertysearch"> |
|
|
26 |
Search: <input autocomplete="off" id="searchinput" /> |
|
|
27 |
<div id="searchresults"> |
|
|
28 |
|
|
|
29 |
</div> |
|
|
30 |
</div> |
|
|
31 |
</form> |
|
|
32 |
</div> |
|
|
33 |
|
|
|
34 |
<div id="bd"> |
|
|
35 |
<div id="yui-main"> |
|
|
36 |
<div class="yui-b"> |
|
|
37 |
<form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form"> |
|
|
38 |
<fieldset> |
|
|
39 |
<legend>Filters</legend> |
|
|
40 |
<span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span> |
|
|
41 |
<span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span> |
|
|
42 |
<span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span> |
|
|
43 |
</fieldset> |
|
|
44 |
</form> |
|
|
45 |
|
|
|
46 |
<h2> |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
Class <b property="yui:name">History</b> |
|
|
52 |
<span class="extends"> |
|
|
53 |
</span> |
|
|
54 |
|
|
|
55 |
</h2> |
|
|
56 |
<!-- class tree goes here --> |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
<div class="summary description" property="yui:description"> |
|
|
62 |
This class represents an instance of the browser history utility. |
|
|
63 |
</div> |
|
|
64 |
|
|
|
65 |
<div class="section constructor details" rel="yui:constructor" resource="#constructor"> |
|
|
66 |
<h3 id="constructor">Constructor</h3> |
|
|
67 |
<div class="content"> |
|
|
68 |
<div class="detail"> |
|
|
69 |
<strong property="yui:name">History</strong> |
|
|
70 |
<code> |
|
|
71 |
( |
|
|
72 |
) |
|
|
73 |
</code> |
|
|
74 |
<div class="description"> |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
</div> |
|
|
78 |
</div> |
|
|
79 |
</div> |
|
|
80 |
</div> |
|
|
81 |
|
|
|
82 |
<div rel="yui:properties" resource="#properties"> |
|
|
83 |
|
|
|
84 |
</div> |
|
|
85 |
|
|
|
86 |
<div rel="yui:methods" resource="#methods"> |
|
|
87 |
<div class="section method details"> |
|
|
88 |
<h3 id="methods">Methods</h3> |
|
|
89 |
<div class="content"> |
|
|
90 |
<div class="private" rel="yui:method" resource="#method__checkIframeLoaded"> |
|
|
91 |
<h4> |
|
|
92 |
<a name="method__checkIframeLoaded">_checkIframeLoaded</a></h4> |
|
|
93 |
<div class="detail" > |
|
|
94 |
<code> |
|
|
95 |
private |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
void |
|
|
99 |
<strong property="yui:name">_checkIframeLoaded</strong> |
|
|
100 |
( |
|
|
101 |
) |
|
|
102 |
</code> |
|
|
103 |
|
|
|
104 |
<div class="description" property="yui:description"> |
|
|
105 |
Periodically checks whether our internal IFrame is ready to be used |
|
|
106 |
</div> |
|
|
107 |
|
|
|
108 |
<div class="description"> |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
</div> |
|
|
116 |
|
|
|
117 |
</div> |
|
|
118 |
<hr /> |
|
|
119 |
</div> |
|
|
120 |
<div class="private" rel="yui:method" resource="#method__getHash"> |
|
|
121 |
<h4> |
|
|
122 |
<a name="method__getHash">_getHash</a></h4> |
|
|
123 |
<div class="detail" > |
|
|
124 |
<code> |
|
|
125 |
private |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
string |
|
|
129 |
<strong property="yui:name">_getHash</strong> |
|
|
130 |
( |
|
|
131 |
) |
|
|
132 |
</code> |
|
|
133 |
|
|
|
134 |
<div class="description" property="yui:description"> |
|
|
135 |
Returns the portion of the hash after the '#' symbol. |
|
|
136 |
</div> |
|
|
137 |
|
|
|
138 |
<div class="description"> |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
<dl> |
|
|
142 |
<dt>Returns: |
|
|
143 |
<code property="yui:return"> |
|
|
144 |
string |
|
|
145 |
</code></dt> |
|
|
146 |
<dd property="yui:returnInfo">The hash portion of the document's location</dd> |
|
|
147 |
</dl> |
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
</div> |
|
|
153 |
|
|
|
154 |
</div> |
|
|
155 |
<hr /> |
|
|
156 |
</div> |
|
|
157 |
<div class="private" rel="yui:method" resource="#method__handleFQStateChange"> |
|
|
158 |
<h4> |
|
|
159 |
<a name="method__handleFQStateChange">_handleFQStateChange</a></h4> |
|
|
160 |
<div class="detail" > |
|
|
161 |
<code> |
|
|
162 |
private |
|
|
163 |
|
|
|
164 |
|
|
|
165 |
void |
|
|
166 |
<strong property="yui:name">_handleFQStateChange</strong> |
|
|
167 |
( |
|
|
168 |
|
|
|
169 |
|
|
|
170 |
fqstate |
|
|
171 |
|
|
|
172 |
|
|
|
173 |
) |
|
|
174 |
</code> |
|
|
175 |
|
|
|
176 |
<div class="description" property="yui:description"> |
|
|
177 |
Sets the new currentState attribute of all modules depending on the new fully |
|
|
178 |
qualified state. Also notifies the modules which current state has changed. |
|
|
179 |
</div> |
|
|
180 |
|
|
|
181 |
<div class="description"> |
|
|
182 |
|
|
|
183 |
<dl rel="yui:parameters"> |
|
|
184 |
<dt>Parameters:</dt> |
|
|
185 |
<dd rel="yui:parameter"> |
|
|
186 |
<code><span property="yui:name">fqstate</span> |
|
|
187 |
<<span property="yui:type">string</span>> |
|
|
188 |
</code> |
|
|
189 |
<span property="yui:description"> fully qualified state</span> |
|
|
190 |
</dd> |
|
|
191 |
</dl> |
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
</div> |
|
|
198 |
|
|
|
199 |
</div> |
|
|
200 |
<hr /> |
|
|
201 |
</div> |
|
|
202 |
<div class="private" rel="yui:method" resource="#method__initialize"> |
|
|
203 |
<h4> |
|
|
204 |
<a name="method__initialize">_initialize</a></h4> |
|
|
205 |
<div class="detail" > |
|
|
206 |
<code> |
|
|
207 |
private |
|
|
208 |
|
|
|
209 |
|
|
|
210 |
void |
|
|
211 |
<strong property="yui:name">_initialize</strong> |
|
|
212 |
( |
|
|
213 |
) |
|
|
214 |
</code> |
|
|
215 |
|
|
|
216 |
<div class="description" property="yui:description"> |
|
|
217 |
Finish up the initialization of the browser utility library. |
|
|
218 |
</div> |
|
|
219 |
|
|
|
220 |
<div class="description"> |
|
|
221 |
|
|
|
222 |
|
|
|
223 |
|
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
</div> |
|
|
228 |
|
|
|
229 |
</div> |
|
|
230 |
<hr /> |
|
|
231 |
</div> |
|
|
232 |
<div class="private" rel="yui:method" resource="#method__storeStates"> |
|
|
233 |
<h4> |
|
|
234 |
<a name="method__storeStates">_storeStates</a></h4> |
|
|
235 |
<div class="detail" > |
|
|
236 |
<code> |
|
|
237 |
private |
|
|
238 |
|
|
|
239 |
|
|
|
240 |
void |
|
|
241 |
<strong property="yui:name">_storeStates</strong> |
|
|
242 |
( |
|
|
243 |
) |
|
|
244 |
</code> |
|
|
245 |
|
|
|
246 |
<div class="description" property="yui:description"> |
|
|
247 |
Stores the initial state and current state for all registered modules |
|
|
248 |
in the (hidden) form field specified during initialization. |
|
|
249 |
</div> |
|
|
250 |
|
|
|
251 |
<div class="description"> |
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
</div> |
|
|
259 |
|
|
|
260 |
</div> |
|
|
261 |
<hr /> |
|
|
262 |
</div> |
|
|
263 |
<div class="private" rel="yui:method" resource="#method__updateIFrame"> |
|
|
264 |
<h4> |
|
|
265 |
<a name="method__updateIFrame">_updateIFrame</a></h4> |
|
|
266 |
<div class="detail" > |
|
|
267 |
<code> |
|
|
268 |
private |
|
|
269 |
|
|
|
270 |
|
|
|
271 |
boolean |
|
|
272 |
<strong property="yui:name">_updateIFrame</strong> |
|
|
273 |
( |
|
|
274 |
) |
|
|
275 |
</code> |
|
|
276 |
|
|
|
277 |
<div class="description" property="yui:description"> |
|
|
278 |
Update the IFrame with our new state. |
|
|
279 |
</div> |
|
|
280 |
|
|
|
281 |
<div class="description"> |
|
|
282 |
|
|
|
283 |
|
|
|
284 |
<dl> |
|
|
285 |
<dt>Returns: |
|
|
286 |
<code property="yui:return"> |
|
|
287 |
boolean |
|
|
288 |
</code></dt> |
|
|
289 |
<dd property="yui:returnInfo">true if successful. false otherwise.</dd> |
|
|
290 |
</dl> |
|
|
291 |
|
|
|
292 |
|
|
|
293 |
|
|
|
294 |
|
|
|
295 |
</div> |
|
|
296 |
|
|
|
297 |
</div> |
|
|
298 |
<hr /> |
|
|
299 |
</div> |
|
|
300 |
<div class="" rel="yui:method" resource="#method_getBookmarkedState"> |
|
|
301 |
<h4> |
|
|
302 |
<a name="method_getBookmarkedState">getBookmarkedState</a></h4> |
|
|
303 |
<div class="detail" > |
|
|
304 |
<code> |
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
string |
|
|
309 |
<strong property="yui:name">getBookmarkedState</strong> |
|
|
310 |
( |
|
|
311 |
|
|
|
312 |
|
|
|
313 |
moduleId |
|
|
314 |
|
|
|
315 |
|
|
|
316 |
) |
|
|
317 |
</code> |
|
|
318 |
|
|
|
319 |
<div class="description" property="yui:description"> |
|
|
320 |
Returns the state of a module according to the URL fragment |
|
|
321 |
identifier. This method is useful to initialize your modules |
|
|
322 |
if your application was bookmarked from a particular state. |
|
|
323 |
</div> |
|
|
324 |
|
|
|
325 |
<div class="description"> |
|
|
326 |
|
|
|
327 |
<dl rel="yui:parameters"> |
|
|
328 |
<dt>Parameters:</dt> |
|
|
329 |
<dd rel="yui:parameter"> |
|
|
330 |
<code><span property="yui:name">moduleId</span> |
|
|
331 |
<<span property="yui:type">string</span>> |
|
|
332 |
</code> |
|
|
333 |
<span property="yui:description"> Non-empty string representing your module.</span> |
|
|
334 |
</dd> |
|
|
335 |
</dl> |
|
|
336 |
|
|
|
337 |
<dl> |
|
|
338 |
<dt>Returns: |
|
|
339 |
<code property="yui:return"> |
|
|
340 |
string |
|
|
341 |
</code></dt> |
|
|
342 |
<dd property="yui:returnInfo">The bookmarked state of the specified module.</dd> |
|
|
343 |
</dl> |
|
|
344 |
|
|
|
345 |
|
|
|
346 |
|
|
|
347 |
|
|
|
348 |
</div> |
|
|
349 |
|
|
|
350 |
</div> |
|
|
351 |
<hr /> |
|
|
352 |
</div> |
|
|
353 |
<div class="" rel="yui:method" resource="#method_getCurrentState"> |
|
|
354 |
<h4> |
|
|
355 |
<a name="method_getCurrentState">getCurrentState</a></h4> |
|
|
356 |
<div class="detail" > |
|
|
357 |
<code> |
|
|
358 |
|
|
|
359 |
|
|
|
360 |
|
|
|
361 |
string |
|
|
362 |
<strong property="yui:name">getCurrentState</strong> |
|
|
363 |
( |
|
|
364 |
|
|
|
365 |
|
|
|
366 |
moduleId |
|
|
367 |
|
|
|
368 |
|
|
|
369 |
) |
|
|
370 |
</code> |
|
|
371 |
|
|
|
372 |
<div class="description" property="yui:description"> |
|
|
373 |
Returns the current state of the specified module. |
|
|
374 |
</div> |
|
|
375 |
|
|
|
376 |
<div class="description"> |
|
|
377 |
|
|
|
378 |
<dl rel="yui:parameters"> |
|
|
379 |
<dt>Parameters:</dt> |
|
|
380 |
<dd rel="yui:parameter"> |
|
|
381 |
<code><span property="yui:name">moduleId</span> |
|
|
382 |
<<span property="yui:type">string</span>> |
|
|
383 |
</code> |
|
|
384 |
<span property="yui:description"> Non-empty string representing your module.</span> |
|
|
385 |
</dd> |
|
|
386 |
</dl> |
|
|
387 |
|
|
|
388 |
<dl> |
|
|
389 |
<dt>Returns: |
|
|
390 |
<code property="yui:return"> |
|
|
391 |
string |
|
|
392 |
</code></dt> |
|
|
393 |
<dd property="yui:returnInfo">The current state of the specified module.</dd> |
|
|
394 |
</dl> |
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
</div> |
|
|
400 |
|
|
|
401 |
</div> |
|
|
402 |
<hr /> |
|
|
403 |
</div> |
|
|
404 |
<div class="" rel="yui:method" resource="#method_getQueryStringParameter"> |
|
|
405 |
<h4> |
|
|
406 |
<a name="method_getQueryStringParameter">getQueryStringParameter</a></h4> |
|
|
407 |
<div class="detail" > |
|
|
408 |
<code> |
|
|
409 |
|
|
|
410 |
|
|
|
411 |
|
|
|
412 |
string |
|
|
413 |
<strong property="yui:name">getQueryStringParameter</strong> |
|
|
414 |
( |
|
|
415 |
|
|
|
416 |
|
|
|
417 |
paramName |
|
|
418 |
|
|
|
419 |
|
|
|
420 |
, |
|
|
421 |
queryString |
|
|
422 |
|
|
|
423 |
|
|
|
424 |
) |
|
|
425 |
</code> |
|
|
426 |
|
|
|
427 |
<div class="description" property="yui:description"> |
|
|
428 |
Returns the value of the specified query string parameter. |
|
|
429 |
This method is not used internally by the Browser History Manager. |
|
|
430 |
However, it is provided here as a helper since many applications |
|
|
431 |
using the Browser History Manager will want to read the value of |
|
|
432 |
url parameters to initialize themselves. |
|
|
433 |
</div> |
|
|
434 |
|
|
|
435 |
<div class="description"> |
|
|
436 |
|
|
|
437 |
<dl rel="yui:parameters"> |
|
|
438 |
<dt>Parameters:</dt> |
|
|
439 |
<dd rel="yui:parameter"> |
|
|
440 |
<code><span property="yui:name">paramName</span> |
|
|
441 |
<<span property="yui:type">string</span>> |
|
|
442 |
</code> |
|
|
443 |
<span property="yui:description"> Name of the parameter we want to look up.</span> |
|
|
444 |
</dd> |
|
|
445 |
<dd rel="yui:parameter"> |
|
|
446 |
<code><span property="yui:name">queryString</span> |
|
|
447 |
<<span property="yui:type">string</span>> |
|
|
448 |
</code> |
|
|
449 |
<span property="yui:description"> Optional URL to look at. If not specified, |
|
|
450 |
this method uses the URL in the address bar.</span> |
|
|
451 |
</dd> |
|
|
452 |
</dl> |
|
|
453 |
|
|
|
454 |
<dl> |
|
|
455 |
<dt>Returns: |
|
|
456 |
<code property="yui:return"> |
|
|
457 |
string |
|
|
458 |
</code></dt> |
|
|
459 |
<dd property="yui:returnInfo">The value of the specified parameter, or null.</dd> |
|
|
460 |
</dl> |
|
|
461 |
|
|
|
462 |
|
|
|
463 |
|
|
|
464 |
|
|
|
465 |
</div> |
|
|
466 |
|
|
|
467 |
</div> |
|
|
468 |
<hr /> |
|
|
469 |
</div> |
|
|
470 |
<div class="" rel="yui:method" resource="#method_initialize"> |
|
|
471 |
<h4> |
|
|
472 |
<a name="method_initialize">initialize</a></h4> |
|
|
473 |
<div class="detail" > |
|
|
474 |
<code> |
|
|
475 |
|
|
|
476 |
|
|
|
477 |
|
|
|
478 |
void |
|
|
479 |
<strong property="yui:name">initialize</strong> |
|
|
480 |
( |
|
|
481 |
|
|
|
482 |
|
|
|
483 |
stateField |
|
|
484 |
|
|
|
485 |
|
|
|
486 |
, |
|
|
487 |
historyIFrame |
|
|
488 |
|
|
|
489 |
|
|
|
490 |
) |
|
|
491 |
</code> |
|
|
492 |
|
|
|
493 |
<div class="description" property="yui:description"> |
|
|
494 |
Initializes the Browser History Manager. Call this method |
|
|
495 |
from a script block located right after the opening body tag. |
|
|
496 |
</div> |
|
|
497 |
|
|
|
498 |
<div class="description"> |
|
|
499 |
|
|
|
500 |
<dl rel="yui:parameters"> |
|
|
501 |
<dt>Parameters:</dt> |
|
|
502 |
<dd rel="yui:parameter"> |
|
|
503 |
<code><span property="yui:name">stateField</span> |
|
|
504 |
<<span property="yui:type">string|HTML Element</span>> |
|
|
505 |
</code> |
|
|
506 |
<span property="yui:description"> <input type="hidden"> used |
|
|
507 |
to store application states. Must be in the static markup.</span> |
|
|
508 |
</dd> |
|
|
509 |
<dd rel="yui:parameter"> |
|
|
510 |
<code><span property="yui:name">historyIFrame</span> |
|
|
511 |
<<span property="yui:type">string|HTML Element</span>> |
|
|
512 |
</code> |
|
|
513 |
<span property="yui:description"> IFrame used to store |
|
|
514 |
the history (only required for IE6/7)</span> |
|
|
515 |
</dd> |
|
|
516 |
</dl> |
|
|
517 |
|
|
|
518 |
|
|
|
519 |
|
|
|
520 |
|
|
|
521 |
|
|
|
522 |
</div> |
|
|
523 |
|
|
|
524 |
</div> |
|
|
525 |
<hr /> |
|
|
526 |
</div> |
|
|
527 |
<div class="" rel="yui:method" resource="#method_multiNavigate"> |
|
|
528 |
<h4> |
|
|
529 |
<a name="method_multiNavigate">multiNavigate</a></h4> |
|
|
530 |
<div class="detail" > |
|
|
531 |
<code> |
|
|
532 |
|
|
|
533 |
|
|
|
534 |
|
|
|
535 |
boolean |
|
|
536 |
<strong property="yui:name">multiNavigate</strong> |
|
|
537 |
( |
|
|
538 |
|
|
|
539 |
|
|
|
540 |
states |
|
|
541 |
|
|
|
542 |
|
|
|
543 |
) |
|
|
544 |
</code> |
|
|
545 |
|
|
|
546 |
<div class="description" property="yui:description"> |
|
|
547 |
Stores a new entry in the browser history by changing the state |
|
|
548 |
of several registered modules in one atomic operation. |
|
|
549 |
</div> |
|
|
550 |
|
|
|
551 |
<div class="description"> |
|
|
552 |
|
|
|
553 |
<dl rel="yui:parameters"> |
|
|
554 |
<dt>Parameters:</dt> |
|
|
555 |
<dd rel="yui:parameter"> |
|
|
556 |
<code><span property="yui:name">states</span> |
|
|
557 |
<<span property="yui:type">object</span>> |
|
|
558 |
</code> |
|
|
559 |
<span property="yui:description"> Associative array of module-state pairs to set simultaneously.</span> |
|
|
560 |
</dd> |
|
|
561 |
</dl> |
|
|
562 |
|
|
|
563 |
<dl> |
|
|
564 |
<dt>Returns: |
|
|
565 |
<code property="yui:return"> |
|
|
566 |
boolean |
|
|
567 |
</code></dt> |
|
|
568 |
<dd property="yui:returnInfo">Indicates whether the new state was successfully added to the history.</dd> |
|
|
569 |
</dl> |
|
|
570 |
|
|
|
571 |
|
|
|
572 |
|
|
|
573 |
|
|
|
574 |
</div> |
|
|
575 |
|
|
|
576 |
</div> |
|
|
577 |
<hr /> |
|
|
578 |
</div> |
|
|
579 |
<div class="" rel="yui:method" resource="#method_navigate"> |
|
|
580 |
<h4> |
|
|
581 |
<a name="method_navigate">navigate</a></h4> |
|
|
582 |
<div class="detail" > |
|
|
583 |
<code> |
|
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
boolean |
|
|
588 |
<strong property="yui:name">navigate</strong> |
|
|
589 |
( |
|
|
590 |
|
|
|
591 |
|
|
|
592 |
module |
|
|
593 |
|
|
|
594 |
|
|
|
595 |
, |
|
|
596 |
state |
|
|
597 |
|
|
|
598 |
|
|
|
599 |
) |
|
|
600 |
</code> |
|
|
601 |
|
|
|
602 |
<div class="description" property="yui:description"> |
|
|
603 |
Stores a new entry in the browser history by changing the state of a registered module. |
|
|
604 |
</div> |
|
|
605 |
|
|
|
606 |
<div class="description"> |
|
|
607 |
|
|
|
608 |
<dl rel="yui:parameters"> |
|
|
609 |
<dt>Parameters:</dt> |
|
|
610 |
<dd rel="yui:parameter"> |
|
|
611 |
<code><span property="yui:name">module</span> |
|
|
612 |
<<span property="yui:type">string</span>> |
|
|
613 |
</code> |
|
|
614 |
<span property="yui:description"> Non-empty string representing your module.</span> |
|
|
615 |
</dd> |
|
|
616 |
<dd rel="yui:parameter"> |
|
|
617 |
<code><span property="yui:name">state</span> |
|
|
618 |
<<span property="yui:type">string</span>> |
|
|
619 |
</code> |
|
|
620 |
<span property="yui:description"> String representing the new state of the specified module.</span> |
|
|
621 |
</dd> |
|
|
622 |
</dl> |
|
|
623 |
|
|
|
624 |
<dl> |
|
|
625 |
<dt>Returns: |
|
|
626 |
<code property="yui:return"> |
|
|
627 |
boolean |
|
|
628 |
</code></dt> |
|
|
629 |
<dd property="yui:returnInfo">Indicates whether the new state was successfully added to the history.</dd> |
|
|
630 |
</dl> |
|
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
|
634 |
|
|
|
635 |
</div> |
|
|
636 |
|
|
|
637 |
</div> |
|
|
638 |
<hr /> |
|
|
639 |
</div> |
|
|
640 |
<div class="" rel="yui:method" resource="#method_register"> |
|
|
641 |
<h4> |
|
|
642 |
<a name="method_register">register</a></h4> |
|
|
643 |
<div class="detail" > |
|
|
644 |
<code> |
|
|
645 |
|
|
|
646 |
|
|
|
647 |
|
|
|
648 |
History.Module |
|
|
649 |
<strong property="yui:name">register</strong> |
|
|
650 |
( |
|
|
651 |
|
|
|
652 |
|
|
|
653 |
moduleId |
|
|
654 |
|
|
|
655 |
|
|
|
656 |
, |
|
|
657 |
initialState |
|
|
658 |
|
|
|
659 |
|
|
|
660 |
) |
|
|
661 |
</code> |
|
|
662 |
|
|
|
663 |
<div class="description" property="yui:description"> |
|
|
664 |
Registers a new module. |
|
|
665 |
</div> |
|
|
666 |
|
|
|
667 |
<div class="description"> |
|
|
668 |
|
|
|
669 |
<dl rel="yui:parameters"> |
|
|
670 |
<dt>Parameters:</dt> |
|
|
671 |
<dd rel="yui:parameter"> |
|
|
672 |
<code><span property="yui:name">moduleId</span> |
|
|
673 |
<<span property="yui:type">string</span>> |
|
|
674 |
</code> |
|
|
675 |
<span property="yui:description"> Non-empty string uniquely identifying the |
|
|
676 |
module you wish to register.</span> |
|
|
677 |
</dd> |
|
|
678 |
<dd rel="yui:parameter"> |
|
|
679 |
<code><span property="yui:name">initialState</span> |
|
|
680 |
<<span property="yui:type">string</span>> |
|
|
681 |
</code> |
|
|
682 |
<span property="yui:description"> The initial state of the specified |
|
|
683 |
module corresponding to its earliest history entry.</span> |
|
|
684 |
</dd> |
|
|
685 |
</dl> |
|
|
686 |
|
|
|
687 |
<dl> |
|
|
688 |
<dt>Returns: |
|
|
689 |
<code property="yui:return"> |
|
|
690 |
History.Module |
|
|
691 |
</code></dt> |
|
|
692 |
<dd property="yui:returnInfo">The newly registered module</dd> |
|
|
693 |
</dl> |
|
|
694 |
|
|
|
695 |
|
|
|
696 |
|
|
|
697 |
|
|
|
698 |
</div> |
|
|
699 |
|
|
|
700 |
</div> |
|
|
701 |
<hr /> |
|
|
702 |
</div> |
|
|
703 |
</div> |
|
|
704 |
</div> |
|
|
705 |
|
|
|
706 |
</div> |
|
|
707 |
|
|
|
708 |
<div rel="yui:events" resource="#events"> |
|
|
709 |
<div class="section method details"> |
|
|
710 |
<h3 id="events">Events</h3> |
|
|
711 |
<div class="content"> |
|
|
712 |
<div class="" rel="yui:event" resource="#event_history:globalStateChange"> |
|
|
713 |
<h4> |
|
|
714 |
<a name="event_history:globalStateChange">history:globalStateChange</a></h4> |
|
|
715 |
<div class="detail"> |
|
|
716 |
<code> |
|
|
717 |
|
|
|
718 |
|
|
|
719 |
|
|
|
720 |
<strong property="yui:name">history:globalStateChange</strong> |
|
|
721 |
|
|
|
722 |
( |
|
|
723 |
) |
|
|
724 |
|
|
|
725 |
</code> |
|
|
726 |
|
|
|
727 |
<div class="description" property="yui:description"> |
|
|
728 |
Fires when the global state of the page has changed (that is, |
|
|
729 |
when the state of at least one browser history module has changed) |
|
|
730 |
</div> |
|
|
731 |
|
|
|
732 |
<div class="description"> |
|
|
733 |
|
|
|
734 |
|
|
|
735 |
|
|
|
736 |
|
|
|
737 |
</div> |
|
|
738 |
|
|
|
739 |
</div> |
|
|
740 |
<hr /> |
|
|
741 |
</div> |
|
|
742 |
<div class="" rel="yui:event" resource="#event_history:moduleStateChange"> |
|
|
743 |
<h4> |
|
|
744 |
<a name="event_history:moduleStateChange">history:moduleStateChange</a></h4> |
|
|
745 |
<div class="detail"> |
|
|
746 |
<code> |
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
<strong property="yui:name">history:moduleStateChange</strong> |
|
|
751 |
|
|
|
752 |
( |
|
|
753 |
) |
|
|
754 |
|
|
|
755 |
</code> |
|
|
756 |
|
|
|
757 |
<div class="description" property="yui:description"> |
|
|
758 |
Fires when the state of a history module object has changed |
|
|
759 |
</div> |
|
|
760 |
|
|
|
761 |
<div class="description"> |
|
|
762 |
|
|
|
763 |
|
|
|
764 |
|
|
|
765 |
|
|
|
766 |
</div> |
|
|
767 |
|
|
|
768 |
</div> |
|
|
769 |
<hr /> |
|
|
770 |
</div> |
|
|
771 |
<div class="" rel="yui:event" resource="#event_history:ready"> |
|
|
772 |
<h4> |
|
|
773 |
<a name="event_history:ready">history:ready</a></h4> |
|
|
774 |
<div class="detail"> |
|
|
775 |
<code> |
|
|
776 |
|
|
|
777 |
|
|
|
778 |
|
|
|
779 |
<strong property="yui:name">history:ready</strong> |
|
|
780 |
|
|
|
781 |
( |
|
|
782 |
) |
|
|
783 |
|
|
|
784 |
</code> |
|
|
785 |
|
|
|
786 |
<div class="description" property="yui:description"> |
|
|
787 |
Fires when the browser history utility is ready |
|
|
788 |
</div> |
|
|
789 |
|
|
|
790 |
<div class="description"> |
|
|
791 |
|
|
|
792 |
|
|
|
793 |
|
|
|
794 |
|
|
|
795 |
</div> |
|
|
796 |
|
|
|
797 |
</div> |
|
|
798 |
<hr /> |
|
|
799 |
</div> |
|
|
800 |
</div> |
|
|
801 |
</div> |
|
|
802 |
|
|
|
803 |
|
|
|
804 |
</div> |
|
|
805 |
|
|
|
806 |
<div rel="yui:attributes" resource="#configattributes"> |
|
|
807 |
|
|
|
808 |
</div> |
|
|
809 |
|
|
|
810 |
</div> |
|
|
811 |
</div> |
|
|
812 |
<div class="yui-b"> |
|
|
813 |
<div class="nav"> |
|
|
814 |
|
|
|
815 |
<div id="moduleList" class="module"> |
|
|
816 |
<h4>Modules</h4> |
|
|
817 |
<ul class="content"> |
|
|
818 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
819 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
820 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
821 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
822 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
823 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
824 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
825 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
826 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
827 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
828 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
829 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
830 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
831 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
832 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
833 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
834 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
835 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
836 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
837 |
<li class="selected"><a href="module_history.html" title="history">history</a></li> |
|
|
838 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
839 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
840 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
841 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
842 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
843 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
844 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
845 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
846 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
847 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
848 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
849 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
850 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
851 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
852 |
<li class=""><a href="module_test.html" title="test">test</a></li> |
|
|
853 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
854 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
855 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
856 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
857 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
858 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
859 |
</ul> |
|
|
860 |
</div> |
|
|
861 |
|
|
|
862 |
<div id="classList" class="module"> |
|
|
863 |
<h4>Classes</h4> |
|
|
864 |
<ul class="content"> |
|
|
865 |
<li class="selected"><a href="History.html" title="History">History</a></li> |
|
|
866 |
<li class=""><a href="History.Module.html" title="History.Module">History.Module</a></li> |
|
|
867 |
</ul> |
|
|
868 |
</div> |
|
|
869 |
|
|
|
870 |
<div id="fileList" class="module"> |
|
|
871 |
<h4>Files</h4> |
|
|
872 |
<ul class="content"> |
|
|
873 |
<li class=""><a href="history.js.html" title="history.js">history.js</a></li> |
|
|
874 |
</ul> |
|
|
875 |
</div> |
|
|
876 |
|
|
|
877 |
|
|
|
878 |
<div id="methodsList" class="module"> |
|
|
879 |
<h4>Methods</h4> |
|
|
880 |
<ul class="content"> |
|
|
881 |
<li class="private"><a href="#method__checkIframeLoaded" title="_checkIframeLoaded">_checkIframeLoaded</a></li> |
|
|
882 |
<li class="private"><a href="#method__getHash" title="_getHash">_getHash</a></li> |
|
|
883 |
<li class="private"><a href="#method__handleFQStateChange" title="_handleFQStateChange">_handleFQStateChange</a></li> |
|
|
884 |
<li class="private"><a href="#method__initialize" title="_initialize">_initialize</a></li> |
|
|
885 |
<li class="private"><a href="#method__storeStates" title="_storeStates">_storeStates</a></li> |
|
|
886 |
<li class="private"><a href="#method__updateIFrame" title="_updateIFrame">_updateIFrame</a></li> |
|
|
887 |
<li class=""><a href="#method_getBookmarkedState" title="getBookmarkedState">getBookmarkedState</a></li> |
|
|
888 |
<li class=""><a href="#method_getCurrentState" title="getCurrentState">getCurrentState</a></li> |
|
|
889 |
<li class=""><a href="#method_getQueryStringParameter" title="getQueryStringParameter">getQueryStringParameter</a></li> |
|
|
890 |
<li class=""><a href="#method_initialize" title="initialize">initialize</a></li> |
|
|
891 |
<li class=""><a href="#method_multiNavigate" title="multiNavigate">multiNavigate</a></li> |
|
|
892 |
<li class=""><a href="#method_navigate" title="navigate">navigate</a></li> |
|
|
893 |
<li class=""><a href="#method_register" title="register">register</a></li> |
|
|
894 |
</ul> |
|
|
895 |
</div> |
|
|
896 |
|
|
|
897 |
<div id="eventsList" class="module"> |
|
|
898 |
<h4>Events</h4> |
|
|
899 |
<ul class="content"> |
|
|
900 |
<li class=""><a href="#event_history:globalStateChange" title="history:globalStateChange">history:globalStateChange</a></li> |
|
|
901 |
<li class=""><a href="#event_history:moduleStateChange" title="history:moduleStateChange">history:moduleStateChange</a></li> |
|
|
902 |
<li class=""><a href="#event_history:ready" title="history:ready">history:ready</a></li> |
|
|
903 |
</ul> |
|
|
904 |
</div> |
|
|
905 |
|
|
|
906 |
|
|
|
907 |
</div> |
|
|
908 |
</div> |
|
|
909 |
</div> |
|
|
910 |
<div id="ft"> |
|
|
911 |
<hr /> |
|
|
912 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
913 |
</div> |
|
|
914 |
</div> |
|
|
915 |
<script type="text/javascript"> |
|
|
916 |
ALL_YUI_PROPS = [{"access": "private", "host": "History", "name": "_checkIframeLoaded", "url": "History.html#method__checkIframeLoaded", "type": "method"}, {"access": "", "host": "History", "name": "getBookmarkedState", "url": "History.html#method_getBookmarkedState", "type": "method"}, {"access": "", "host": "History", "name": "getCurrentState", "url": "History.html#method_getCurrentState", "type": "method"}, {"access": "private", "host": "History", "name": "_getHash", "url": "History.html#method__getHash", "type": "method"}, {"access": "", "host": "History", "name": "getQueryStringParameter", "url": "History.html#method_getQueryStringParameter", "type": "method"}, {"access": "private", "host": "History", "name": "_handleFQStateChange", "url": "History.html#method__handleFQStateChange", "type": "method"}, {"access": "", "host": "History", "name": "history:globalStateChange", "url": "History.html#event_history:globalStateChange", "type": "event"}, {"access": "", "host": "History", "name": "history:moduleStateChange", "url": "History.html#event_history:moduleStateChange", "type": "event"}, {"access": "", "host": "History", "name": "history:ready", "url": "History.html#event_history:ready", "type": "event"}, {"access": "private", "host": "History", "name": "_initialize", "url": "History.html#method__initialize", "type": "method"}, {"access": "", "host": "History", "name": "initialize", "url": "History.html#method_initialize", "type": "method"}, {"access": "", "host": "History", "name": "multiNavigate", "url": "History.html#method_multiNavigate", "type": "method"}, {"access": "", "host": "History", "name": "navigate", "url": "History.html#method_navigate", "type": "method"}, {"access": "", "host": "History", "name": "register", "url": "History.html#method_register", "type": "method"}, {"access": "private", "host": "History", "name": "_storeStates", "url": "History.html#method__storeStates", "type": "method"}, {"access": "private", "host": "History", "name": "_updateIFrame", "url": "History.html#method__updateIFrame", "type": "method"}]; |
|
|
917 |
</script> |
|
|
918 |
</body> |
|
|
919 |
</html> |