Displaying 20 results from an estimated 1100 matches similar to: "auto_complete_field, :on_hide woes"
2007 Oct 09
0
auto_complete :on_show :on_hide
Hi,
Trying to use the auto_complete options of :on_show and :on_hide....
......, :on_hide => "function(element, update)
{allow_change_control(true);} "
but when I do this it runs my js function but the div doesn''t hide.
I would like the auto_complete to work normally and just run a js
function which sets a js variable.
Any suggestions
Thanks
2005 Dec 21
1
How do you use :on_hide in auto_complete_field?
I''m trying to get some auto_complete_field stuff going, and I have them
working for the most part, but I can''t quite get how the :on_hide option
works. I''m hoping that I can populate a hidden field with the id of the
chosen record with it...is that going to be possible? Thanks for your
help.
--
Posted via http://www.ruby-forum.com/.
2008 Jan 03
0
remote_form_for with auto_complete_field
Hi friends
I have problem with auto_complete_field.
I have used auto_complete_field with in the remote_form_for.
But when we enter the text in auto_complete_field two actions are
calling
1. auto_complete_field action
2. remote_form_for action
I need to restrict the form action when we enter text on
auto_complete_field
Could u give any ideas?
<div
2005 Dec 20
1
Can''t use mouseover with auto_complete_field
Good afertnoon.
I''m trying to use a mouse over event:
Event.observe("name_auto_complete", "mouseover",
function(){alert("auto_complete")} );
with the auto_complete_field bellow.
<%= text_field_tag("name") %>
<%= content_tag("div", "", "id" => "name_auto_complete") %>
<%=
2006 Aug 10
0
Hrm, :after on auto_complete_field helper ?
Okay, urm, here is the problem :)
I have an auto_complete field that gets back a set of three values, so,
ideally, I thought I would put the :after tag on the
auto_complete_field, use a little custom javascript function that splits
it up and flings it into the other values, except, call me stupid, but,
auto_complete_field doesn''t have an :after tag ? At least, I can''t see
2006 Feb 27
0
auto_complete_field Vs text_field_with_auto_complete
Hi,
I want to know which of the two methods, auto_complete_field and
text_field_with_auto_complete best suits what I am trying to do.
I have a model class called search (which doen''t extend ActiveRecord)
which holds two parameters, category_string and postcode_string.
I want my form to bind its values to these to values. I also want the
category input to be an auto complete field
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code
to follow).
I have a form to create a new book. This book can have many authors
and I wanted to be able to add the authors based on if they appear in
the authors table. I originally was going about it a long and arduous
way where I had several forms. After thinking about it I decided to
dynamically add new fields to
2010 Jan 09
0
auto_complete_field does not update display:none
Hi,
text_field_with_auto_complete works.
auto_complete_field almost works, the only problem is that it does not
update the display:none default attribute of the div that receives the
results. So the results are there, but I can''t see them.
I compared both html, and they look the same. Only CSS differs, but
updating the display:none should only happen in the javascript code.
Who ran
2006 Sep 19
0
Effect.Highlight interferes with Effect.toggle
I''m using something like an accordion, but the div containers have some
elements in them that use Effect.Highlight (i.e. InPlaceEditor and
Ajax.Checkbox, one of my SAU classes). If I click the element that
starts the Effect.SlideUp or some other similar effect, and then mouse
over an element starting an Effect.Highlight, the highlight cancels the
SlideUp. Or, if the Effect.Highlight
2006 Jan 23
0
Indexed Text Input -> Ajax with Helpers
Hello again.
I can get my input forms doing what I want using the '':index =>
object_counter'' syntax which is very nice.
However, the Ajax text_input_with_auto_complete seem not to be able to
account for the :index.
I can see in the source why this is the case. I have a workaround
that is an ugly kludge. I am wondering if there is any less-ugly
kludge that I can try.
2006 Jul 14
1
auto completion with composite field
How can auto completion be done for a composite field ?
Concrete problem : Suppose the class Person with reference to a City
object.
The City has a name and a postal code.
When entering a Person I want to enter the city in one text field that
shows a composition of the city name and the postal :
"city (postal)". And this with auto complete (and should afterwards be
linked to the
2006 Jan 19
0
auto_complete_for_text_field to association
I am trying to set the association using an auto_complete_for field.
message -> person
To be user friendly, I want to display the person''s name in the text
field, while setting the association id after selecting them from the
auto_complete_results.
To far I get some of it to work, am only get the 1st associattion_id no
matter what item I am selecting from the results.
The only
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here..
I have a form where users can write a city name (used with
auto_complete) - and once they click on the desired city in the dropdown
menu - I would like to have the Country field filled automatically as
well...
Is this possible at all ?
If so, can somebody please tell me where I can find some documentation
on the subject, or preferrably an example ?
Many thanks in
2006 Jun 02
2
pass extra value through text_field_with_auto_complete?
Hi,
I''m wondering if it is possible to pass an extra value (which I will
use to further restrict my query) using text_field_with_auto_complete?
Any suggestions would be appreciated!
-Mike
2009 Aug 26
5
Noob DRY method question
Hi Gurus, I''m learning the Rails framework, and I have this exact
block of html/javascript in two places in an if/else construct in
application.html.erb:
<body onload="Modalbox.show(''<div class=\''warning\''> <p> <center> <%=
flash[ :notice ] %> </center> </p> <p> <center> <input
2005 Dec 14
1
[scriptaculous] scroll down to show full auto completion list (w/ possible patch)
Hi everyone,
lately I''ve implemented an auto completion textfield at the bottom of a
form. I was a bit bothered by the fact that the user would potentially
need to scroll down in order to see all the options offered by the auto
completion. I couldn''t find any information on how to auto scroll to the
auto completion list with bulit-in functionality so I modified
controls.js
2007 Jan 19
0
About that auto-complete select box ...
Cross posted from the "RoR:Talk" board...
This is more a CSS question than a Rails one.
In AWDwR, in the script.aculo.us section talking about auto-completion,
it says
"It is worth highlighting that there is no JavaScript to enable the
arrow-up, arrow-down, highlight behavior of the list. It is enough to
provide the stylesheet above; it turns out that all <ul> tags support
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
Note that this does not fix gettext for app,
that will be done separately in another patch
as F10/F11 require different setups for that.
In the meantime gettext works if manually changed
in environment.rb to gettext_rails instead of
gettext/rails
Signed-off-by: Jason Guiditta <jason.guiditt at gmail.com>
---
src/app/controllers/application.rb | 200 --------
2006 Mar 17
1
Autocompleter.Local problem/desparate plea for help...
I have been trying to write a selector function for Autocompleter.Local that
will show a predefined Array and will scroll automatically to the first
match. I have had success with with getting my list to populate and show
all of the choices, however I cannot get it to scroll to the first match.
Since I build the JS Array I can know exactly how many items are in the list
going into my selector,
2007 Nov 11
3
Scrollable selectbox for auto complete
Hi everyone,
I have used used scriptalicious for the autocomplete.
It works but with one problem.
When scrolling down the list, the values not visible are not scrolled
into focus.
eg I use the keyboard down or up key.
Here is my CSS
<style type="text/css">
div.auto_complete {
height: 100px;
width: 350px;
background: