[Rails-spinoffs] AutoCompleter

2006-11-03 Thread Fernando
I'm trying to use Ajax.autoCompleter as a select list like this afterUpdateElement: function(el1,el2) { el2.innerHTML.evalScripts(); } ok it is working fine in IE, but in FF, it display the value from script tag in the textbox my response is like this CLAUDIO ANGELO VENTUR

Re: [Rails-spinoffs] Autocompleter

2006-08-13 Thread Eric Harrison
Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 2:07 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Autocompleter Is there any way to set the height of the Automcompleter

RE: [Rails-spinoffs] Autocompleter

2006-08-09 Thread TLADAMSO
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 2:07 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Autocompleter Is there any way to set the height of the Automcompleter's div that gets

RE: [Rails-spinoffs] Autocompleter

2006-08-09 Thread Daniel Elmore
s not work with the autocompleter. Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 2:07 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Autocompleter Is there any way to set the h

[Rails-spinoffs] Autocompleter

2006-08-08 Thread TLADAMSO
Is there any way to set the height of the Automcompleter's div that gets the return values? When you set it with an overflow, it works, but if the user scrolls by clicking on the scroll bar the list disappears... ___ Rails-spinoffs mailing list Rails-s

RE: [Rails-spinoffs] autocompleter and IE6 crash

2006-07-30 Thread louis d walch
Grzesiek Slusarek Sent: Friday, July 28, 2006 4:49 AM To: rails-spinoffs Subject: [Rails-spinoffs] autocompleter and IE6 crash Hi all. I overloaded autocompleter.local and write my own web user control, everything works fine on FF 1.5 and Opera 8/9 but when I start using it in IE6 after while I get

[Rails-spinoffs] autocompleter and IE6 crash

2006-07-28 Thread Grzesiek Slusarek
Hi all. I overloaded autocompleter.local and write my own web user control, everything works fine on FF 1.5 and Opera 8/9 but when I start using it in IE6 after while I get message "there was a problem with Internet Expoloder ..." and exploder crash. Does anyone know what I'm doing wrong? i th

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

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

2006-07-26 Thread Justin Chen
Is there an option to prevent the 'return' key from autocompleting?  On my application I like having the autocomplete show possible matches for users, but I dont want to force them to use a partial match. Example: 1) User wants to enter "sock" into the textbox2) Autocomplete finds a term "sockpuppe

[Rails-spinoffs] Autocompleter doubles requests

2006-07-15 Thread Kjell Bublitz
Hi allI have Firefox with Firebug running and i am using an Autocompleter. While tracing AJAX calls i saw that the Autocompleter always calls the URL two times at once.. Is this the correct behaviour because i dont see the point in calling the URL two times. PS: no i am not typing slow or something

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

[Rails-Spinoffs] Autocompleter without a default choice

2006-06-29 Thread Scott Fortmann-Roe
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 user is typing his entry and then hits return to submit it is possible

[Rails-spinoffs] Autocompleter enhancement feature request

2006-06-19 Thread Surendra Singhi
Hello, I have created a ticket for an enhancement of the autocompleter to show the options immediately when the field gets focus. Right now at least one character must be typed for autocomplete to kick in. http://dev.rubyonrails.org/ticket/5435 I have also made some code changes directly in

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

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

2006-05-23 Thread Haldane, Sam
Title: autocompleter competing with saved form data in firefox 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 wh

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
keyup event. > > As for FF, I haven't found any solution. Let me know if you find one. > > > -Daniel Elmore > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeoff > Wilks > Sent: Tuesday, May 23, 2006 9:15 AM

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
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeoff Wilks Sent: Tuesday, May 23, 2006 9:15 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Autocompleter - up arrow moves cursor to start ofinput box When using the autocompleter and scrolling through options,

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

2006-05-23 Thread Daniel Elmore
x27;t found any solution. Let me know if you find one. -Daniel Elmore -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeoff Wilks Sent: Tuesday, May 23, 2006 9:15 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Autocompleter - up arr

[Rails-spinoffs] Autocompleter - up arrow moves cursor to start of input box

2006-05-23 Thread Jeoff Wilks
When using the autocompleter and scrolling through options, if you press the up arrow key the input field cursor moves backward. Some of my users have reported that they find this very distracting. Does anyone know why this happens, or where in the code I could fix it? Steps to recreate: 1. Go to

[Rails-spinoffs] Autocompleter quirk and my proposed fix.

2006-05-09 Thread Daniel Elmore
Under heavy server load, my autocompleter was doing something strange. The ajax requests were coming back out of order. For example in a contact name search if I typed: dan I would get responses like so: Result set for: d Result set for: dan Result set for: da So once the typing stopped I would b

RE: [Rails-spinoffs] Autocompleter

2006-04-11 Thread Joe Hudson
ubject: Re: [Rails-spinoffs] Autocompleter > > Arrg solved > > Safari supports setSelectionRange() > > field.select(); > field.setSelectionRange(field.value.length, field.value.length); > field.focus(); > > > thanks anyway :) > > > >

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

[Rails-spinoffs] Autocompleter

2006-04-11 Thread Claudio Gamboa
Hi Anyone of Safari guru know how can I put the cursor in the end of the textbox/line in an Autocompleter when I use tokens options? Ok, ok this is not a sacriptaculous problem, its JavaScript. Regards. ___ Rails-spinoffs mailing list Rails-spinoff

[Rails-spinoffs] Autocompleter

2006-03-29 Thread Deco Rior
What is the best way to show that Autocompleter is searching for the dropdown list. It is taking several seconds to load the list deco ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/r

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

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

2006-03-13 Thread SPENDLOVE, Matt, FM
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) ? Any pointers / thoughts appreciated. Best Matt

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

[Rails-spinoffs] Autocompleter question

2006-02-16 Thread Joseph Potenza
Hey all,     When using the Ajax.autocompleter, how would I configure it so that the user is searching based on an entry's name, but once they select an entry, I record the ID?       I have the user entering a person's name in a text box to make it easier to find contacts in a large databa

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

[Rails-spinoffs] Autocompleter Request depends on other field

2006-02-09 Thread Ed C.
Hi list,   First, I have a textbox "username". I also have an Autocompleter'd textbox called "products".   Is there a "built in" way to have the Autocompleter's Ajax Request pass the value in the "username" field ?   (I tried adding "parameters: $F('username')" to the Autocompleter's options, but,

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
06 3:14 PM > To: rails-spinoffs@lists.rubyonrails.org > Subject: [Rails-spinoffs] Autocompleter with a scroll bar > > Has anyone been able to make scrollable results for an autocompleter? > > Thanks! > > ___ > Rails-spinoffs ma

[Rails-spinoffs] Autocompleter with a scroll bar

2006-01-02 Thread Daniel Elmore
Has anyone been able to make scrollable results for an autocompleter? Thanks! ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

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

[Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Daniel Elmore
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. Thanks! Daniel ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mail

[Rails-spinoffs] AutoCompleter message div not hiding

2005-12-01 Thread Paul Shannon
Hello, I have a problem with the AutoCompleter, specifically the div that holds the return values. It doesn't get hidden until the page has correctly loaded, so in a page that makes cross-server JS calls the div is visible, and covers content, while the page is loading fully. I managed to circumv