Alien-GvaScript
view release on metacpan or search on metacpan
doc/html/Paginator.html view on Meta::CPAN
step : 20
}</pre>
</div>
</div>
<div class="TN_node" id="DESCRIPTION">
<h2 class="TN_label">DESCRIPTION</h2>
<div class="TN_content">
<p>Paginated data is a set of data that can be divided into differnent pages.
It is best described as a list of items that overflow one page and best presented in several pages.
The Paginator Object is used in this case to manage retrieval (through AJAX Requests) and handling (through an onSuccess handler).
It also will take care of creating the navigation links (first, prev, next, last) and rendering them into provided container.
Navigation links are used for an on demand <i>page flipping</i>.</p>
<p>Data will be requested using an HTTP call to a provided URL.
Data Index and Size are decided using <code>INDEX</code> and <code>STEP</code> parameters respectively.
It is up to you to make use of these parameters to decide on the items to display.</p>
<div class="TN_node" id="Pagination_Parameters">
<h3 class="TN_label">Pagination Parameters</h3>
<div class="TN_content">
<p>The Paginator Object will manage the 2 request parameters</p>
lib/Alien/GvaScript/Paginator.pod view on Meta::CPAN
onSuccess : onSuccessHandler,
parameters : {param1: 'val1', param2: 'val2'},
step : 20
}
=head1 DESCRIPTION
Paginated data is a set of data that can be divided into differnent pages.
It is best described as a list of items that overflow one page and best presented in several pages.
The Paginator Object is used in this case to manage retrieval (through AJAX Requests) and handling (through an onSuccess handler).
It also will take care of creating the navigation links (first, prev, next, last) and rendering them into provided container.
Navigation links are used for an on demand I<page flipping>.
Data will be requested using an HTTP call to a provided URL.
Data Index and Size are decided using C<INDEX> and C<STEP> parameters respectively.
It is up to you to make use of these parameters to decide on the items to display.
=head2 Pagination Parameters
lib/Alien/GvaScript/lib/GvaScript.js view on Meta::CPAN
var input_val = this._getValueToComplete(inputElement.value);
var index = null;
// inspect the choice list to automatically choose the appropriate candidate
for (var i=0; i < choices.length; i++) {
var val = this._valueFromChoiceItem(choices[i]);
if (val == input_val) {
index = i;
break; // break the loop because this is the best choice
}
else if (val.toUpperCase() == input_val.toUpperCase()) {
index = i; // is a candidate, but we may find a better one
}
}
// if automatic choice did not work, but we have only 1 choice, and this is
// not blank on purpose, then force it into the field
if (index === null && choices.length == 1
&& (input_val || !this.options.blankOK ))
src/autoCompleter.js view on Meta::CPAN
var input_val = this._getValueToComplete(inputElement.value);
var index = null;
// inspect the choice list to automatically choose the appropriate candidate
for (var i=0; i < choices.length; i++) {
var val = this._valueFromChoiceItem(choices[i]);
if (val == input_val) {
index = i;
break; // break the loop because this is the best choice
}
else if (val.toUpperCase() == input_val.toUpperCase()) {
index = i; // is a candidate, but we may find a better one
}
}
// if automatic choice did not work, but we have only 1 choice, and this is
// not blank on purpose, then force it into the field
if (index === null && choices.length == 1
&& (input_val || !this.options.blankOK ))
( run in 0.672 second using v1.01-cache-2.11-cpan-4e96b696675 )