Well, I don't know if this deserves an entire write up.  I used your Java
code.  Here is the JavaScript

<link rel="stylesheet" type="text/css"
href="${stylesDir}/jquery.autocomplete.css" />
<script type="text/javascript"
src="${scriptsDir}/jquery-ui-1.6rc2.min.js"></script>
<script type="text/javascript"
src="${scriptsDir}/jquery.autocomplete.min.js"></script>

<script type="text/javascript">
     $(function() {

$('#cityInput').autocomplete("SomeActionBean.action?cityAutoComplete=");
     });
</script>


The following changes had to be made to the java code.


citySearch had to be changed to q.  This can probably be overridden in the
autocomplete options but didn't take the time to look.
if (city.toLowerCase().indexOf(q.toLowerCase()) != -1) - autocomplete
library was changing everything to lower case so had to adjust for the in
the Java code.

Aside from that, everything else is the same.

Gregg

On Sun, Nov 2, 2008 at 10:04 PM, Freddy Daoud <[EMAIL PROTECTED]> wrote:

> - Guess I'll have to write up an example with the autocomplete widget I
> use.
> - :)  But I do agree that finding the right UI widget for jquery can be
> - daunting.  I do have my own personal goto list for things though.
> - Gregg
>
> Gregg, that's *exactly* what I wanted to hear, but I didn't want to
> impose..
> If you do post a write-up, be sure to send the link! Thanks.
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to