Re: [Rails-spinoffs] Autocompleter

2006-08-13 Thread Eric Harrison
On 8/9/06, Daniel Elmore <[EMAIL PROTECTED]> wrote: [snip] Scrolling does not work with the autocompleter. Why doesn't scrolling work? That seems like a trivial bit to add and the absense seems like more of an oversight than anything else. Was this decision made purposefully? -E Daniel -

RE: [Rails-spinoffs] Autocompleter

2006-08-09 Thread TLADAMSO
| | To: | | cc: (bcc: Tyler L. Adamson/UPC) | |

RE: [Rails-spinoffs] Autocompleter

2006-08-09 Thread Daniel Elmore
You can set the height with CSS using the ID you assigned to the results div. But it's usually better to not set a height so that all records returned will be seen. You should specify a height for each of the records inside the results div, but not on the results div itself. Scrolling does not work

RE: [Rails-spinoffs] autocompleter and IE6 crash

2006-07-30 Thread louis d walch
I recently encountered a similar error, but with appendChild. It turned out I had a missing ... Check over your whole dom and make sure it is correct, I think ie6 barfs out if it does not like it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grzesiek

Re: [Rails-spinoffs] Autocompleter onKeyPress behavior for 'return'

2006-07-27 Thread Justin Chen
Actually, my last workaround didn't totally work...What did seem to work was changing the default index to null in updateChoices.  This makes it so that nothing is selected by default so enter still submits unless the user actively selects a choice from the selection box. justinOn 7/27/06, Justin C

Re: [Rails-spinoffs] Autocompleter onKeyPress behavior for 'return'

2006-07-27 Thread Justin Chen
I tried passing \n as a token but it doesnt seem to do anything with it.  My unelegant workaround for now is to comment out the line in controls.js that looks for return:  switch(event.keyCode) {   case Event.KEY_TAB://   case Event.KEY_RETURN: this.selectEntry(); Event

Re: [Rails-spinoffs] Autocompleter onKeyPress behavior for 'return'

2006-07-27 Thread Steve Longdo
Have you tried changing the autocomplete tokens?  I imagine trapping or not trapping the '\n' (newline character ) would control this behavior.Before-  tokens: new Array(' ',',','\n')After- tokens: new Array(' ',',') On 7/26/06, Justin Chen <[EMAIL PROTECTED]> wrote: Is there an option to prevent t

Re: [Rails-Spinoffs] Autocompleter without a default choice

2006-07-07 Thread Hirn, Joseph
2 things to try... 1) You could try using the document.onkeydown event to capture all enter keystrokes and submit the form before the autocompleter calls updateElement. 2) Try providing an updateElement function to the autocompleter which checks if the keystroke was an enter and either submits or

Re: [Rails-Spinoffs] Autocompleter without a default choice

2006-07-07 Thread Scott Fortmann-Roe
How do you make the autocompleter come up without a suggestion? The mouse thing is also important, but that's half the battle. Thanks, Scott On 7/6/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: On Thursday 29 June 2006 01:06, Scott Fortmann-Roe wrote: > Hi, > > I have an ajax auto completer fo

Re: [Rails-Spinoffs] Autocompleter without a default choice

2006-07-06 Thread Jeremy Kitchen
On Thursday 29 June 2006 01:06, Scott Fortmann-Roe wrote: > Hi, > > I have an ajax auto completer for a text field in a form. All's good. > > Unfortunately, I also want the form to be submitted when the user hits > 'return' in the text field. > > This combination of circumstances means that if the

Re: [Rails-spinoffs] autocompleter competing with saved form data in firefox

2006-05-24 Thread Haldane, Sam
Perfect, thank you. Sam > Date: Wed, 24 May 2006 11:29:16 +0200 > From: "Danial Tzadeh" <[EMAIL PROTECTED]> > Subject: Re: [Rails-spinoffs] autocompleter competing with saved form > data in firefox > To: rails-spinoffs@lists.rubyonrails.org > Message-ID:

Re: [Rails-spinoffs] autocompleter competing with saved form data in firefox

2006-05-24 Thread Danial Tzadeh
You can do it by: wrote: Hi all, I have used the sciptaculous Ajax autocompleter a few times now. A major problem I have at the moment is with a text field that has focus when a page loads. The text field has an autocompleter associated with it, but when the user starts typing, the firefox

RE: [Rails-spinoffs] Autocompleter - up arrow moves cursor tostartofinput box

2006-05-23 Thread Daniel Elmore
;t need that line there for FF viewers. What do you think? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeoff Wilks Sent: Tuesday, May 23, 2006 10:57 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Autocompleter - up arrow moves c

Re: [Rails-spinoffs] Autocompleter - up arrow moves cursor to startofinput box

2006-05-23 Thread Jeoff Wilks
e="off" attribute is specified. Can you confirm? Daniel Elmore -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeoff Wilks Sent: Tuesday, May 23, 2006 9:43 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Autocompleter - up ar

RE: [Rails-spinoffs] Autocompleter - up arrow moves cursor to startofinput box

2006-05-23 Thread Daniel Elmore
ly has the problem when the autocomplete="off" attribute is specified. Can you confirm? Daniel Elmore -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeoff Wilks Sent: Tuesday, May 23, 2006 9:43 AM To: rails-spinoffs@lists.rubyonrails

RE: [Rails-spinoffs] Autocompleter - up arrow moves cursor to startofinput box

2006-05-23 Thread Martinez, Andrew
:[EMAIL PROTECTED] On Behalf Of Jeoff Wilks Sent: Tuesday, May 23, 2006 10:43 AM To: rails-spinoffs@lists.rubyonrails.org Subject:Re: [Rails-spinoffs] Autocompleter - up arrow moves cursor to startofinput box Thanks for the quick response. > Go into any input box and press the up

Re: [Rails-spinoffs] Autocompleter - up arrow moves cursor to start ofinput box

2006-05-23 Thread Jeoff Wilks
Thanks for the quick response. Go into any input box and press the up key, your cursor will move backwards, its part of the basic nav. system. I tried pressing the up arrow in the Google.com search box, my Ameritrade quote box, and on a RoR Trac ticket page. None of them move the cursor backwa

RE: [Rails-spinoffs] Autocompleter - up arrow moves cursor to start ofinput box

2006-05-23 Thread Daniel Elmore
Go into any input box and press the up key, your cursor will move backwards, its part of the basic nav. system. You can counter this effect in IE by changing the value of the input field, say by: Field.value = Field.value + ''; Tag that to your onkeyup event. As for FF, I haven't found any sol

RE: [Rails-spinoffs] Autocompleter

2006-04-11 Thread Joe Hudson
Is there a cross-browser way of doing this by any chance? Joe > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Claudio Gamboa > Sent: Tuesday, April 11, 2006 6:41 PM > To: rails-spinoffs@lists.rubyonrails.org > S

Re: [Rails-spinoffs] Autocompleter

2006-04-11 Thread Claudio Gamboa
Arrg solved Safari supports setSelectionRange() field.select(); field.setSelectionRange(field.value.length, field.value.length); field.focus(); thanks anyway :) On Tue, 2006-04-11 at 22:54 +0100, Claudio Gamboa wrote: > Hi > > Anyone of Safari guru know how can I put the cursor i

RE: [Rails-spinoffs] Autocompleter that auto scrolls through results..

2006-03-13 Thread Maninder, Singh
Title: RE: [Rails-spinoffs] Autocompleter that auto scrolls through results.. I think this is what you are looking for: http://dev.rubyonrails.org/ticket/3516   Thank you,Mandy. ___ Rails-spinoffs mailing list Rails-spinoffs

RE: [Rails-spinoffs] Autocompleter that auto scrolls through resu lts..

2006-03-13 Thread SPENDLOVE, Matt, FM
> the scriptaculous autocompleter already does this. I don't think so ? What I mean is if the user moves through the results using the arrows keys and the results div is bigger than the screen height, then trigger scrolling on the results div itself ?

Re: [Rails-spinoffs] Autocompleter that auto scrolls through results..

2006-03-13 Thread Jeremy Kitchen
On Monday 13 March 2006 08:14, SPENDLOVE, Matt, FM wrote: > Hi All > > Before I investigate further, has anyone implemented an Autocompleter that > will auto scroll down / up the results div as the user moves down through > the list (using arrow keys) ? the scriptaculous autocompleter already does

RE: [Rails-spinoffs] Autocompleter question

2006-02-16 Thread Bob Silva
n Behalf Of Nicolas Sent: Thursday, February 16, 2006 11:31 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] Autocompleter question Hi, You can play with which will be displayed, but not selected and which won't be displayed, but selected. You can do pretty much everything

Re: [Rails-spinoffs] Autocompleter question

2006-02-16 Thread Nicolas
Hi,You can play with which will be displayed, but not selected and which won't be displayed, but selected.You can do pretty much everything with that, so you won't need to moidfy autocompleter code. Reagrds,NicoOn 2/16/06, Joseph Potenza <[EMAIL PROTECTED]> wrote: Hey all,     When using t

Re: [Rails-spinoffs] Autocompleter Request depends on other field

2006-02-09 Thread Todd Ross
On 2/9/06, Ed C. <[EMAIL PROTECTED]> wrote: > No, that's what the $F() does ;) Sorry! I read that as just $('username'). I wasn't paying attention (note to self: don't catch up on e-mail while eating dinner). Todd ___ Rails-spinoffs mailing list Rails

Re: [Rails-spinoffs] Autocompleter Request depends on other field

2006-02-09 Thread Ed C.
No, that's what the $F() does ;)   I hacked Controls.js @ Line 330: //__dyp = this .options.dynamParams;if(__dyp) { this.options.parameters += '&' + encodeURIComponent(__dyp) + '=' + encodeURIComponent($F(__dyp));} //

Re: [Rails-spinoffs] Autocompleter Request depends on other field

2006-02-09 Thread Todd Ross
On 2/9/06, Ed C. <[EMAIL PROTECTED]> wrote: > (I tried adding "parameters: $F('username')" to the Autocompleter's options, > but, that grabs the initial username value (which is blank), not the current > value.) Does Form.Element.getValue('username') work any better? Todd

RE: [Rails-spinoffs] Autocompleter with a scroll bar

2006-01-02 Thread Daniel Elmore
@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Autocompleter with a scroll bar I did with an Autocompleter.Local, just put it in the css on the div to scroll. style="overflow: scroll;" Greg > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [

RE: [Rails-spinoffs] Autocompleter with a scroll bar

2006-01-02 Thread Daniel Elmore
Ooo, got it. Just use "overflow: auto;" Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Monday, January 02, 2006 4:21 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Autocompleter with a scr

RE: [Rails-spinoffs] Autocompleter with a scroll bar

2006-01-02 Thread Daniel Elmore
egory Hill Sent: Monday, January 02, 2006 4:21 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Autocompleter with a scroll bar I did with an Autocompleter.Local, just put it in the css on the div to scroll. style="overflow: scroll;" Greg > -Original Mess

RE: [Rails-spinoffs] Autocompleter with a scroll bar

2006-01-02 Thread Gregory Hill
I did with an Autocompleter.Local, just put it in the css on the div to scroll. style="overflow: scroll;" Greg > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Daniel Elmore > Sent: Monday, January 02, 2006 3:14 PM > To: rails-spino

RE: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Daniel Elmore
Yes that did it! Thanks for your time _Rob_ :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Wills Sent: Thursday, December 08, 2005 12:45 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] AutoCompleter afterUpdateElement

Re: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Rob Wills
On 08/12/2005, at 5:26 PM, Daniel Elmore wrote: Thank you Ron, that helps a lot! Rob :) However I am experiencing a problem. I am getting a JS error "element is not defined". Also the afterupdateelement is running directly when the page loads, maybe that's the cause of the problem. ne

RE: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Daniel Elmore
L PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Wills Sent: Thursday, December 08, 2005 12:03 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] AutoCompleter afterUpdateElement On 08/12/2005, at 4:38 PM, Daniel Elmore wrote: > Any ideas how I can submit

Re: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Rob Wills
On 08/12/2005, at 4:38 PM, Daniel Elmore wrote: Any ideas how I can submit say, a person ID instead of the person's name on an autocompleter input field? Surely this is a common need. It is... and it's in the documentation (although it's not obvious how to achieve it) Use an `afterUpda