similar to: Can''t use mouseover with auto_complete_field

Displaying 20 results from an estimated 1000 matches similar to: "Can''t use mouseover with 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
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 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/.
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 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
2006 Mar 09
2
handling events: mouseover, etc.
I''m having a hard time figuring out how to handle mouseover events w/ Ruby on Rails (esp. whether Javascript takes over, or the Controller should be used). I''m currently trying to create a simple mouseover info box showing the definition, and some other information, when certain words are moused-over. Say I have an array of Word objects that have 1) word name 2) definition
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 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
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 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
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi, How can we trigger a JavaScript built in function from a <%= link_to %> ie. i have the below statement in my view. I want to invoke a JavaScript function on "MouseOver" of this below text (''TestingMouseOverEvents''). <%= link_to "TestingMouseOverEvents" , :controller => "login", :action => "logout"%> Note: The
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys, I was wondering if you are able to have a link_to_remote, having an image_tag and the link_to_remote has a mouseover event that updates a div. Does the image_tag need the mouseover event? I currently have: <%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update => "big_pic", :onmouseover => {:action => :color_change, :id => @p_image.id})%>
2008 Apr 16
3
non-bubbling mouseover/mouseout
First, I have only played with Prototype for about a month, so I don''t know it well. Second, I am more of a server-side programmer than a client-side programmer. In my page, I have a div that appears as a result of a link mouseover event. This div is nested within another div that houses everything (id = ''menuContainer''). I want the resulting div (which is a submenu)
2007 Mar 09
0
link_to_remote with onmouseover event
Anyone have a better method for having the onmouseover event (or any other mouse event) instead of onclick when using link_to_remote: This is what I did, but I''d i have to create one for every mouse event, can''t figure out how to call a mouse event via an argument . anyone else run into this problem. Thanks def link_to_remote_mover(name, options = {}, html_options
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 Mar 09
15
regular expressions slay me
I am furiously trying to find what I am looking for in Pickaxe book and not finding it. I''m getting some values back from a posted form and I need to get the ''id'' number off the backend. The ''String'' will always come back to me as... Some_name\r\n123 where 123 is actually the id number which I need to execute the find. The reason they are coming back
2007 Sep 30
2
Outputing to the browser, how?
Hello, I''m writting some helper methods to write forms, so I have this working code: class TableFormBuilder < ActionView::Helpers::FormBuilder ["file_field", "password_field", "text_field"].each do |name| define_method(name) do |label, *args| @template.content_tag(:tr, @template.content_tag(:td, @template.content_tag(:label,
2006 Jun 21
2
Mouseover Speed Issues
I''m having severe speed issues on our server (localhost is lightening fast!). Here''s the call: <img src= <%= @pics[col].img_url %> height=80 width=60 onMouseover="<%= remote_function(:update => "diag_box", :url => { :action => :preview, :tit => @pics[col].mname, :desc => @pics[col].description })%>;"> It''s an
2011 Feb 03
2
Display note when MouseOver Input form
I''m using Rails 3, Formtastic an Jquery. I would like to display a "floating" note when an input field gets focus. A good example is when trying to submit a story on digg when you are not logged in. What is the best way to do this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2008 Feb 01
0
[Bug 10618] glxgears or mouseover on buttons can crash X server
http://bugs.freedesktop.org/show_bug.cgi?id=10618 Maarten Maathuis <madman2003 at gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Keywords| |NEEDINFO Resolution|