similar to: using ajax-enabled search field in rails

Displaying 20 results from an estimated 10000 matches similar to: "using ajax-enabled search field in rails"

2006 Mar 17
4
using ajax and layouts
Hi. I copied the layout-example from agile web dev. in rails. When I want to use ajax to create a search field including <head><%= javascript_include_tag "prototype" %></head> does''nt work when I include the line in my app/views/layout/demo.rhtml. Name of controller is demo_controller.rb. The search-field is in app/views/demo/observer.rthml and I have to
2014 Apr 01
1
upgrade samba3 -> samba4, difficulties with koha
Hi all, We've been running samba3/openldap in combo with koha for years, until the time came to upgrade to samba4 AD. Did that last weekend, and today I tried to connect koha (3.12.01, I know, we have to upgrade) to the samba4 ldap server. We're using auth_by_bind, which should be supported by Active Directory, checked principle name many times. However, I can't login, apache
2006 Mar 29
0
css, div-tags and ajax
Hi. I copied parts of the ajax-examples in Agile Rails prog. and modified it so it searched for zip-codes. The result is displayed in search.rhtml. The first version looked like this, I liked the look of the "add to cart" in the depot-example. :class => ''button1'' is originally addtocart which I renamed in the .css-file. <% for city in @cities %> <%=
2006 Apr 19
9
geolocation db?
I''m currently planning a social app in Rails that relies on being able to see how far you are from everyone else. It''s my intention to store rough geo-coordinates as part of the sign up process. My intention is to capture their zipcode or postal code, and then be able to query a webservice once for that data. It''s also possible that there might be a database or even
2006 May 19
1
validates_presence_of and ajax-forms
Hi. I have "validates_presence_of :login, :password, :firstname, :lastname" in my user-model. I enter the information in new_user.rhtml: <%= error_messages_for(:user) %> <%= form_remote_tag :url => { :action => :register }, :html => { :id => ''new_user'' } %> I have a register.rjs with :fade. Omitting firstname or any other required field
2006 Feb 05
0
Newbie AJAX validation problem. How do I validate field and color field on error
I want to validate a field via AJAX in my Rails application. If there is an error, I want to set an error class on the text field and give it class="error" to color it appropriately in CSS. I''ve been looking at <%= observe_field ''fieldname'', :update => ''another_fieldname'', :url => {:action =>
2009 Dec 14
1
lapply , mapply questions
Dear all, i have a programming problem that should be simple, though i am stuck with it. Please note that this is not a specific geonames problem, though i use it as an example - it´s just a basic problem with lapply. I use the geonames webservices with the R geonames packages which works almost smoothly. I have a vector of Zipcodes and i want to do a geonames lookup for all of them, which
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search. I want to display schools that near a particular zipcode. I have no idea how to do this. It will be great if anyone can point me where I could find info -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 16
8
Multiple (AJAX) Observers on the Same Field and MSIE
I have been using multiple observers, i.e., observe_field(), on the same input field and relying on them to execute in the same order that they appear in the page. This has been working fine in FireFox, but it does not seem to work in MSIE; the requests come in and are processed in a different order. Now, I''ve always been a little hesitant about using this technique, but it always
2006 Jul 12
2
Can''t get observe_field to take a variable for a field name
The subject pretty much says it all: I can''t?get observe_field to take a variable for a field name I''ve tried: <%= observe_field(var_name, ... <%= observe_field("#{var_name}", ... <%= observe_field(:"#{var_name}", ... No luck. Am I missing something? Thanks, : ) Jason -- Posted via http://www.ruby-forum.com/.
2007 Oct 16
8
nfs-ownership
Hi. I have created some zfs-partitions. First I create the home/user-partitions. Beneath that I create additional partitions. Then I have do a chown -R for that user. These partitions are shared using the sharenfs=on. The owner- and group-id is 1009. These partitions are visible as the user assigned above. But when I mount the home/user partition from a FreeBSD-client, only the top-partiton has
2006 Jul 20
1
Ajax and observe_field not updating specified DIV
I have a page that has a dropdown which i''m using observe_field on to make an ajax call back to my controller. The page initially displays fine. The method is invoked in my controller when i select a choice in the dropdown and I have an rjs file which is then invoked. The rjs file looks like this: page.replace_html ''embed_calendar'', :partial =>
2008 Dec 22
2
how to use the observe_field to get more than one field?
Hi, I have two selctdropdown boxes name like "resolution" and "codecname". Now i am able to get the single field value either from resolution or codecformat select box. ex: observe_field ''resolution'' or observe_field ''codecforamt'' is there any way to get the two fields in to the observe_field method ? Can anyone give me suggestionfs or
2006 May 08
0
ZipCode Search
I''ve looked through the messages regarding implementing a ZipCode search and I have a few questions to make sure I have my head wrapped around this. Here''s what I have. I have a database table called zipcodes with the following info (for example) 30310 Atlanta GA 33.727807 -84.41983 -5 1 That''s zip, city, state, latitude, longitude, timezone, and dst. So when a
2010 Oct 02
0
Ajax observe_field not vorking on Rails
down vote favorite I am trying to create some kind of search in my ruby on rails application and I want to add ajax support. I want when a user types in a search box a word, ajax automatically generates the results. And I have searched almost all internet and I couldn''t find answer to following question: When I type into my text area nothing happens. It is like ajax is not working at
2006 Jan 19
1
Populating a select field using observe_field
Hi, I''ve just started toying with Rails and AJAX, so forgive me if this is a bit of a stupid question. I''m trying to populate a select field when the value of another select field is changed. Looking through the API doc, it seems like observe_field is what I need. In my view I have: <p><label for="wine_country_id">Country</label><br/>
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
My scenario: On a department''s products page (index.js.rjs), there is a table showing the products with their id, name, category. The view of this table is specified by a partial file called _index.html.erb. I''m going to add in a selection/option drop down menu above the table to show all the product categories. When the user selects a category from the drop down menu, Ajax
2005 Jun 14
7
OT: US city proximity search
Does anyone know where I might be able to download/purchase a database of US cities and their longitude/latitude coordinates? I''d like to provide a search option on a website that allows users to search by city but include cities in the surrounding area. Thanks, Carl Youngblood _______________________________________________ Rails mailing list
2005 Nov 19
3
Form values not included in submit when ajax generated.
Hi. I have a form with two select lists, named ''project'' and ''activity''. The content of the ''activity'' list is changed when the selected item in project changes, using ''observe_field'' where project is observed, and a div enclosing ''activity'' is updated. This works as expected. The problem is that when
2009 Apr 02
1
"can't modify frozen string" error in Ajax.Updater
I''ve just deployed my RoR app to a host that uses dispatch.cgi instead of Mongrel and came across this issue when using AJAX. The same issue has been highlighted a year ago, (on this list) <http:// groups.google.com/group/rubyonrails-talk/browse_thread/thread/ 872fed1ff554c9a4> and (on Rails Trac) <http://dev.rubyonrails.org/ ticket/10365>. In short, when some browsers enact