Lift Jquery autocomplete

9 views
Skip to first unread message

Marius

unread,
Jun 6, 2009, 3:23:51 AM6/6/09
to Lift
Is there a reason why the JQuery autocomplete is not a Lift widget but
instead it lives in http/jquery package? .. I remember a long time ago
me putting it in the jquery package to separate SHtml stuff that is
dependent on JQuery to the others.

Thoughts?

Br',
Marius

David Pollak

unread,
Jun 6, 2009, 9:53:09 AM6/6/09
to lif...@googlegroups.com

I think I'm using in one place in one project so my api breakage factor is low.  I'm okay with moving it unless someone else is going to feel real pain.

marius d.

unread,
Jun 8, 2009, 4:00:50 AM6/8/09
to Lift
Other folks, please speak up ! :) ... I will soon migrate this into a
Lift widget.


Br's,
Marius

On Jun 6, 4:53 pm, David Pollak <feeder.of.the.be...@gmail.com> wrote:
> I think I'm using in one place in one project so my api breakage factor is
> low.  I'm okay with moving it unless someone else is going to feel real
> pain.
>

Kevin Wright

unread,
Jun 8, 2009, 5:34:40 AM6/8/09
to lif...@googlegroups.com
+1

As an evolving framework, it definitely makes more sense to favour consistency over backward compatibility at this stage

marius d.

unread,
Jun 15, 2009, 2:16:28 PM6/15/09
to Lift
Folks,

I just made the autocomplete a Lift widget so it does not exist
anymore in JqShtml object. Here is an example on how to use it:

- For Ajax autocomplete
AutoComplete("", (current, limit) => {
println("current = " + current)
(1 to limit).map(v => "Value_" + v)
}, s => println("submit " + s))

- For pre-provided options list
AutoComplete.autocompleteObj(/*same params as bfore*/)


This may break your app but I think it is very easy to update it.

I also fixed some bugs:
1. It didn;t work if the container cookies were turned off
2. hovering on the options list did not work on Ubuntu FF3 at least
due to a capitalizated LI equality test.

If you encounter any problems, please let me know.

Br's,
Marius

On Jun 8, 12:34 pm, Kevin Wright <kev.lee.wri...@googlemail.com>
wrote:
> +1
>
> As an evolving framework, it definitely makes more sense to favour
> consistency over backward compatibility at this stage
>

Bryan.

unread,
Jun 15, 2009, 8:07:03 PM6/15/09
to Lift
Hi Marius,

I just updated to the tip and got a build failure:

[WARNING] /home/bryan/public-repos/git/liftweb/sites/example/src/main/
scala/net/liftweb/example/snippet/Ajax.scala:65: error: value
autocomplete is not a member of object net.liftweb.http.jquery.JqSHtml
[WARNING] "auto" -> JqSHtml.autocomplete("", buildQuery _, _
=> ()))

--Bryan

marius d.

unread,
Jun 16, 2009, 2:41:27 AM6/16/09
to Lift
yes yes yes ... entirely my bad as I missed that out ...

I'll correct it very soon.

Marius

marius d.

unread,
Jun 16, 2009, 3:16:25 AM6/16/09
to Lift
two things:

1. Hate msysgit
2. Thanks to Jorge for his help in committing the file


Marius

Viktor Klang

unread,
Jun 16, 2009, 3:35:08 AM6/16/09
to lif...@googlegroups.com
On Tue, Jun 16, 2009 at 9:16 AM, marius d. <marius...@gmail.com> wrote:

two things:

1. Hate msysgit

+Long.MAX_VALUE
 



--
Viktor Klang
Scala Loudmouth

Derek Chen-Becker

unread,
Jun 16, 2009, 2:04:36 PM6/16/09
to lif...@googlegroups.com
Whenever I see "msys" I hear "emesis" in my head. Emesis is the medical term for vomiting.

David Pollak

unread,
Jun 16, 2009, 2:13:52 PM6/16/09
to lif...@googlegroups.com
How about vmware and Linux as your dev platform?  Just askin'
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Reply all
Reply to author
Forward
0 new messages