I was looking for on the web for a way of autocompleting and found
this. I have looked over the wiki at Github and used the example lines
there to put it in my htmlas below.
I have loaded the .js scripts to /javascripts but nothing is working.
Am I missing something very obvious?
Is this dependent on AJAX or something? Please forgive the ignorance
but I have had absolutley no experience of AJAX or such like.
<script src="/javascripts/prototype.js" type="text/javascript"></
script>
<script src="/javascripts/scriptaculous.js" type="text/javascript"></
script>
<script script type="text/javascript" language="javascript">
var bandsList = [
'ABBA',
'AC/DC',
...
new Autocompleter.Local('bands_from_the_70s', 'band_list', bandsList,
{ });
</script>
<style type="text/css">
<!--
div.autocomplete {
margin:0px;
...
}
-->
</style>
...
<p>
<label for="bands_from_the_70s">Your favorite rock band from the
70's:</label>
<br />
<input id="bands_from_the_70s" autocomplete="off" size="40"
type="text" value="" />
</p>
<div class="autocomplete" id="band_list" style="display:none"></div>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---