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
-
|
| To:
|
| cc: (bcc: Tyler L. Adamson/UPC)
|
|
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
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
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
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
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
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
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
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
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:
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
;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
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
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
:[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
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
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
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
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
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
> 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 ?
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
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
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
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
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));}
//
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
@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-
> [
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
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
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
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
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
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
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
36 matches
Mail list logo