[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-03-27 Thread jep
Tito, I had the same problem, but after i copied the latest jquery.js file to the static/ folder of my application, it automatically closes (after 2 or 3 seconds). Closing should/should be a little faster to give it a more responsive feeling. (i am on linux / firefox 3.5.8) On Mar 16, 11:59 pm,

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-03-27 Thread jep
Cool feature, Is it possible to use the value in input A as a limiting select for input B. eg. If your targets can belong to different groups and Borg2 is only in Group2, not Group1. If i select Group2 in my first input field in a form, then in field 2 of the form the autocomplete should only

Re: [web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-03-16 Thread Tito Garrido
Is there a way to close the autocomplete field when the option get clicked? On Thu, Feb 18, 2010 at 11:40 AM, ecall edouard.call...@gmail.com wrote: The trace come from a fresh (web2py 1.75.3) install. I just add the magic. welcome/controllers/default.py : --

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-18 Thread ecall
I use your photon_torpedo/target sample in welcome application. The request is http://127.0.0.1:8080/welcome/default/launch (GAE 1.3.1) ERROR2010-02-18 09:04:36,200 restricted.py:53] In FILE: C: \Python25\eclipse\workspace\web2py_1.75.3\applications\welcome/ controllers/default.py Traceback

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-18 Thread mdipierro
Can you post your code? Are you doing autocomplete for a reference field? If so, do you have the validator? On Feb 18, 2:19 am, ecall edouard.call...@gmail.com wrote: I use your photon_torpedo/target sample in welcome application. The request ishttp://127.0.0.1:8080/welcome/default/launch(GAE

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-18 Thread ecall
The trace come from a fresh (web2py 1.75.3) install. I just add the magic. welcome/controllers/default.py : -- ### assume this action in controller default.py def launch(): db.photon_torpedo.target.represent=lambda target: target.name return

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-17 Thread ecall
Thanks for this nice feature. How can I make it run with ./dev_appserver.py (development for gae)? So far, I have this: File /workspace/google_appengine/src/google/appengine/api/ datastore.py, line 2172, in _GetCompleteKeyOrError raise datastore_errors.BadKeyError('Key %r is not

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-17 Thread mdipierro
I have never seen this error. Can you show the relavant code and the complete traceback? On Feb 17, 3:58 pm, ecall edouard.call...@gmail.com wrote: Thanks for this nice feature. How can I make it run with ./dev_appserver.py (development for gae)? So far, I have this:   File

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-09 Thread villas
IE (Win): Adjusting the delay to 3000 does help to give enough time to make a choice. Setting it above 3000 doesn't seem to make any further difference though. On dropdown, the input loses focus so you cannot keep typing to narrow down the selection. Arrow keys do not work. -- You

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-09 Thread mdipierro
No you still needs to setup a validator On Feb 9, 3:29 pm, Wes James compte...@gmail.com wrote: When text is typed that is not in the list and submitted there is this error: Traceback (most recent call last):   File /opt/00/gluon/restricted.py, line 173, in restricted     exec ccode in

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread villas
I just spent ages playing around with Pengoworks, but it's even better if this can be built into Web2py without any dependencies. How about we change IS_IN_DB so that, if the number of referenced records exceeds a maximum the auto complete widget is on by default? Yes, that's even better. I

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread villas
Problem2: Multi-select appears to be turned on. I mean, press ctrl key and you can click several options. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread mdipierro
Can you give it one more try? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options,

Re: [web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread Jason Brower
I will try it when it's in a release, I want to test the ÖÄÅ features as I can't get it to work in my setup. Best Regards, Jason On Sun, 2010-02-07 at 14:26 -0800, mdipierro wrote: On Feb 7, 3:12 pm, mr.freeze nat...@freezable.com wrote: Nice! I like this but I think it needs a few more

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread villas
Can you give it one more try? Here are my results with latest sqlhtml.py Firefox 3.5.7: Works better, but not 100%. The drop-down appears. OK Single click selection. NO Double click selection. OK Drop-down closes after selection. OK Note: You can still select more than one option

Re: [web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread Thadeus Burgess
can we get an uncompressed version of the javascripts? -Thadeus On Mon, Feb 8, 2010 at 12:48 PM, villas villa...@gmail.com wrote: Can you give it one more try? Here are my results with latest sqlhtml.py Firefox 3.5.7: Works better, but not 100%.  The drop-down appears.   OK  Single

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread mdipierro
Instead of clicking can you use the up, down, right arrows? DO they work? On Feb 8, 12:48 pm, villas villa...@gmail.com wrote: Can you give it one more try? Here are my results with latest sqlhtml.py Firefox 3.5.7: Works better, but not 100%.   The drop-down appears.   OK   Single click

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread mdipierro
I posted a modified version. Can you check it it makes any difference? On Feb 8, 12:48 pm, villas villa...@gmail.com wrote: Can you give it one more try? Here are my results with latest sqlhtml.py Firefox 3.5.7: Works better, but not 100%.   The drop-down appears.   OK   Single click

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread villas
Running my manual test-suite :) Firefox 3.5.7 (Win): Single Click OK. Multi-select fixed. Up and Down arrow keys also work. Suggestion: when dropped-down, it would be nice if ENTER key completed the selection and closed the drop-down, instead of submitting form. Good to go! IE8

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread mdipierro
please try once more. On Feb 8, 2:04 pm, villas villa...@gmail.com wrote: Running my manual test-suite :) Firefox 3.5.7 (Win):   Single Click OK.   Multi-select fixed.   Up and Down arrow keys also work.   Suggestion:  when dropped-down,  it would be nice if ENTER key completed the

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread villas
Firefox 3.5.7 (Win): Appear to be unchanged since my last report. Conclusion: Good. IE8 (Win): The drop-down opens, but then closes after a second. However, there is now just enough time to click-select an option. The selected option is transferred correctly to the input field. Arrow

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-08 Thread mdipierro
In gluon/sqlhtml.py in two places, there is a delay(1000). Does it help if you increase that number to 2000 or 3000 or 5000? On Feb 8, 8:22 pm, villas villa...@gmail.com wrote: Firefox 3.5.7 (Win):   Appear to be unchanged since my last report.   Conclusion: Good. IE8 (Win):   The drop-down

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mdipierro
I fixed some problem with validators. Can somebody give this a try? I could use a second opinion. Massimo On Feb 7, 1:02 am, mdipierro mdipie...@cs.depaul.edu wrote: I do not know that. I am still playing with it... On Feb 6, 11:40 pm, Jason Brower encomp...@gmail.com wrote: I have my

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mdipierro
How about we change IS_IN_DB so that, if the number of referenced records exceeds a maximum the auto complete widget is on by default? Massimo On Feb 7, 1:02 am, mdipierro mdipie...@cs.depaul.edu wrote: I do not know that. I am still playing with it... On Feb 6, 11:40 pm, Jason Brower

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mr.freeze
Nice! I like this but I think it needs a few more tweaks. Can you modify it to allow the arrow keys to select an item? Also, when you clear the input after typing something, all of the options show. I personally think that javascript should be used more in the framework (with proper attention

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mdipierro
On Feb 7, 3:12 pm, mr.freeze nat...@freezable.com wrote: Nice! I like this but I think it needs a few more tweaks. Can you modify it to allow the arrow keys to select an item? Also, when you clear the input after typing something, all of the options show. Yes it can be done. It is on my to

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mdipierro
Now it is very customizable and works well, including right, up, down arrows. It requires at least two chars to start the ajax calls. just do db.table.field.widget=AutocompleteWidget(request,db.othertable.name,db.othertable.id) it looks up in field name for the value of id. On Feb 7, 3:12 

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mr.freeze
Looking good but now I can't select an unselected option by clicking. I can only select the currently selected option with a mouse click. On Feb 7, 8:34 pm, mdipierro mdipie...@cs.depaul.edu wrote: Now it is very customizable and works well, including right, up, down arrows. It requires at

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mdipierro
Please give it a try. It seems some time requires double click instead of single click but cannot figure out why. On Feb 7, 8:52 pm, mr.freeze nat...@freezable.com wrote: Looking good but now I can't select an unselected option by clicking. I can only select the currently selected option with a

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mr.freeze
It is doing two callbacks, one to get autocomplete options and one when you click an item. It seems like it shouldn't do the second one. Also, it probably shouldn't submit the form if you hit the enter key while selecting an option. You might try breaking that huge js code on attr['_onkeyup'] into

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-06 Thread mdipierro
I do not know that. I am still playing with it... On Feb 6, 11:40 pm, Jason Brower encomp...@gmail.com wrote: I have my current autocomplete but it doesn't do öäå in a search.  Does this handle that? Best Regards, Jason On Sat, 2010-02-06 at 12:30 -0800, mdipierro wrote: People say there