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...
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 with the autocompleter. Daniel -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of TLADAMSO-J6ISH/MDR2c@public.gmane.org Sent: Tuesday, August 08, 2006 2:07 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Autocompleter 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-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
That''s what I was afraid of. I have made some css adjustments and the results div does look nice, but I can get back enough results to make the entire page scroll, so I thought it would be nice to shorten the results up a bit. Oh well, still awesome functionality for one line of code :-) |---------+--------------------------------------------> | | "Daniel Elmore" | | | <danielelmore-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> | | | Sent by: | | | rails-spinoffs-bounces-1W37MKcQCpIbvKGg9ot7NQ@public.gmane.org| | | onrails.org | | | | | | | | | 08/09/2006 05:19 AM | | | Please respond to rails-spinoffs | | | | |---------+--------------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: <rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> | | cc: (bcc: Tyler L. Adamson/UPC) | | Subject: RE: [Rails-spinoffs] Autocompleter | >------------------------------------------------------------------------------------------------------------------------------| 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 with the autocompleter. Daniel -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of TLADAMSO-J6ISH/MDR2c@public.gmane.org Sent: Tuesday, August 08, 2006 2:07 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Autocompleter 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-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I''ve successfully implementet resultdiv with scrolling. it works very well in IE and FF, but since it doesnt work in Safari, the patches have not been applied to the script.aculo.us library :-/ I''m not on Mac so its hard for me to make it work in Safari. Tommy S -----Original Message-----> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > TLADAMSO-J6ISH/MDR2c@public.gmane.org > Sent: Tuesday, August 08, 2006 2:07 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Autocompleter > > > 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-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
On 8/9/06, Daniel Elmore <danielelmore-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > TLADAMSO-J6ISH/MDR2c@public.gmane.org > Sent: Tuesday, August 08, 2006 2:07 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Autocompleter > > > 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-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Eric Ryan Harrison, Developer model13 Designs
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 <ul class="contacts"> <li class="contact" > CLAUDIO ANGELO VENTURA<script> $(''VAD0200[COD_FUNC]'').value = ''0010008938''</script> </li> <li class="contact" > CLAUDIO EMERSON CUMARU DA SILVA<script> $(''VAD0200[COD_FUNC]'').value = ''0010009070''</script> </li> </ul> Tks _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <pre id="line204"><i>New Ajax.Autocompleter(''contact_name'', ''contact_name_auto_complete'', ''url'',{ paramName: ''value'', afterUpdateElement: eval_from_auto_completer.eval } var eval_from_auto_completer = { eval : function(el1,el2) { el2.innerHTML.evalScripts(); } } </i>It''s working well, but all my javascript code that are in the <li> tag appers in the text box... <li class="contact" > SomeTExt <script> $(''something_'').value = "wfdfef" </script> </li> so in the textinput will apper ----------------------------------------------- SomeTExt $(''something_'').value = "wfdfef" ----------------------------------------------- How can I fix it? tks </pre> </body> </html>