Displaying 20 results from an estimated 1600 matches similar to: "How do you use :on_hide in auto_complete_field?"
2006 Mar 10
0
auto_complete_field, :on_hide woes
Hi,
I have auto_complete working generating a list and populating a text
box in a form. The problem arises when I add the :on_hide option as
follows:
<%= auto_complete_field "search",
{ :url => {:action => "search"}, :on_hide => "foo($(''selected_uid''),
$(''search_list''))"} > %>
:on_hide makes everything stop
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 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
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
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
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
2005 Nov 19
3
file uploads with lighttpd-1.4.7 broken??
Hi guys,
Im doing fileuploads and it works great with webrick...I just installed
lighttpd 1.4.7 and ran ruby script/server suecessfully picking up my
lighty and fcgi install...
however...when I try to upload a file the proces either stalls (no
evidence of the hit in any logs) or returns 503....
any suggestions??
thanks in advance...
Mikkel
--
Posted via http://www.ruby-forum.com/.
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 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
2003 Jan 14
2
configure issue (ac_cv_lib_inet_connect) on DYNIX/ptx
Greetings -
In trying to get rsync-2.5.6pre1 working on DYNIX/ptx, I found I
needed to pass ac_cv_lib_inet_connect=no to configure in order for
it actually create a properly configured config.h file.
I think this is because configure looks for connect in libinet,
(and finds one there somehow). But connect() is resolved by libsocket
(but configure doesn't find it when
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
2007 Aug 08
1
autocomplete field in ajax response html - css does not get applied.
Hi all,
I have a page in which a div is updated with some html via Ajax. The
returned html contains an autocomplete field. The autocomplete field
works but the drop down results div does not get css applied to it so the
selections don''t get highlighted when I use the up/down arrows and so
I am unable to select from the drop down except for the first item. I
have been looking at this in
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 Feb 04
2
Differentiating between normal site content and accounts with subdomains
I''m using the subdomains as accounts method fine on a project, but
I''m wondering what is the best way to differentiate between account
subdomains to access the app using an account, and www.domain.com and
domain.com in order to show normal site content.
I''ve noticed that on Backpack, it seems that when you leave the
information pages and start using the app,
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 Mar 06
1
Using Runt with Rails Tutorial or Helpers?
I''m working on a project that has event scheduling and I need to get
date recurrence going on it. I found the Runt library which looks like
it has pretty much everything handled, but I was wondering if there are
any tutorials out there for using Runt with Rails, or better yet some
helpers or a plugin for it. I tried searching through the mailing list
archives, but searching is down
2006 Feb 05
3
Accessing Strongspace from a rails app
Is there any information on how to go about accessing a strongspace
account from a rails app? What are the preferred methods for doing
this?
Are there plugins for RoR that support SFTP transfers and so on?
Jake
--
Posted via http://www.ruby-forum.com/.
2006 Jan 09
2
Using RJS templates with observe_form
Hi there,
I''ve been checking out RJS templates, and have been trying to use them
with the observe_form helper.
However, the form values are no longer being passed in the params (as
soon as I point the action to the non-rjs and add the ''update'' clause
everything is working again). Is this expected?
Cheers,
Dave
-------------- next part --------------
An
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.