HTML-Prototype
view release on metacpan or search on metacpan
"indicator": Specifies the DOM ID of an elment which will be
displayed Here's an example using Catalyst::View::Mason with an
indicator against the auto_complete_result example below on the
server side. Notice the 'style="display:none"' in the indicator
<span>.
<% $c->prototype->define_javascript_functions %>
<form action="/bar" method="post" id="baz">
<fieldset>
<legend>Type search terms</legend>
<label for="acomp"><span class="field">Search:</span></label>
<input type="text" name="acomp" id="acomp"/>
<span style="display:none" id="acomp_stat">Searching...</span><br />
</fieldset>
</form>
<span id="acomp_auto_complete"></span><br/>
<% $c->prototype->auto_complete_field( 'acomp', { url => '/autocomplete', indicator => 'acomp_stat' } ) %>
lib/HTML/Prototype.pm view on Meta::CPAN
This defaults to 'value', which in the evaluated context refers to the
new field value.
C<indicator>: Specifies the DOM ID of an elment which will be displayed
Here's an example using L<Catalyst::View::Mason> with an indicator against the auto_complete_result example below on the server side. Notice the 'style="display:none"' in the indicator <span>.
<% $c->prototype->define_javascript_functions %>
<form action="/bar" method="post" id="baz">
<fieldset>
<legend>Type search terms</legend>
<label for="acomp"><span class="field">Search:</span></label>
<input type="text" name="acomp" id="acomp"/>
<span style="display:none" id="acomp_stat">Searching...</span><br />
</fieldset>
</form>
<span id="acomp_auto_complete"></span><br/>
<% $c->prototype->auto_complete_field( 'acomp', { url => '/autocomplete', indicator => 'acomp_stat' } ) %>
( run in 0.992 second using v1.01-cache-2.11-cpan-39bf76dae61 )