Displaying 20 results from an estimated 6000 matches similar to: "autocomplete field in ajax response html - css does not get applied."
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 07
1
text field with autocomplete
Hey everybody,
I am using text field with autocomplete in my posts new action. That
works great.
Response from autocompleter in firebug:
POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms
but if I use the same in edit action it fails and I got this error.
POST http://localhost:3001/posts/781/auto_complete_for_tag_name 404 Not
Found 81ms
*** POSTS controller: ***
def
2006 Apr 13
1
How to implement this kind of autocomplete?
The field is used for tag name input,and multiple tag names can be
inputed.
The traditional textfield_autocomplete will not work after select the
one from the pop menu,how to continue with the autocomplete if i want to
go on with the field inputing?
--
Posted via http://www.ruby-forum.com/.
2006 Dec 21
0
Autocomplete field in form - need string to be displayed but :id to be saved.
Hi all,
Here''s what I am trying to do. I need autocomplete text field in a
form. There are 10,000 names to choose from. But when selected I don''t
want the string to be saved but the :id attribute of the model. How
can I show the string in the text_field and then swap it out for the
:id before a create or update. I see that the customized version on
scrip.aculo.us has both name
2006 May 16
7
svn-1.3.1 errors on intel mac on checkout
I just installed svn-1.3.1 from .dmg on an intel mac. I am getting ...
subversion/libsvn_wc/log.c:338: (apr_err=155009)
svn: In directory ''sr''
subversion/libsvn_subr/io.c:565: (apr_err=2)
svn: Can''t copy ''sr/.svn/tmp/text-base/README.svn-base'' to
''sr/README.tmp'': No such file or directory
Any one getting this? TIA for any help.
2006 Jan 10
7
Can only render or redirect once per action - why?
I ran into this error message a quite a few times since my app requires
branching to different pages from the same action... say using a switch
statement. Ofcourse I found that you can use multiple redirects or renders
if you do
render :action => ''new'' and return false
I hate to code something I don''t understand fully. Any explanation of this
will be greatly
2006 May 26
4
shouldn''t this work? - session[:array_of_objects].delete_if {|x| x.id == params[:id]}
I am saving an array of active record objects (college courses) in the
session as session[:course_list]. This is the cart for a registration
controller.
If a student chooses to delete the course from the list I get the :id
as params[:id].
However if I do
session[:course_list].delete_if {|x| x.id ==params[:id]}
does not work.
session[:course_list].delete_at(idx)
works. Ocourse to do this I have
2006 Apr 12
5
SPAM on rails-list
This is a high traffic list as it is and it is really annoying to see
that SPAM is on the rise here.
I wonder how they can spam the list since each user has to be
authenticated. Do spammers go through the trouble of subscribing to
the list? In any case, this msg is to the list admin...could you
please do whatever it takes to filter this stuff out?
Thank you very much.
-bakki
2006 Apr 23
4
Ruby, Rails & Linux - Which distro
Did I sound like our President? :)
<spin>
I didn''t explain myself well. I am not thinking of buying the
identically equipped PC laptop either at the same price.
If I had a $2500-$3000 budget (laptop, Applecare + case etc) I might
consider the Mac, but then in the PC laptop universe there are more
options of going with the slower processors (T2300 or T2400) for about
$1,000 less
2005 Aug 01
2
disable ''tab'' key wish for incremental autocomplete of textareas
I''m absolutely in love with the incremental
autocomplete feature in the new scriptaculous.
My one wish would be for some way of disabling the TAB
key to prevent users from being able to tab out of an
autocompleting textarea. (If they''re using TAB to
select the autocomplete choice they end up tabbing
straight out of the input field if autocomplete
doesn''t find any
2011 Jul 07
2
Rails 3.1 + jQuery + jQuery UI = data is null
Trying to get jQuery UI to work with my rails 3.1 setup, but i keep
getting errors that i cant see posted anywhere, this is driving my
insane so please have a look =>
[application.js]
// This is a manifest file that''ll be compiled into including all the
files listed below.
// Add new JavaScript/Coffee code in separate files in this directory
and they''ll automatically
// be
2006 Jan 23
1
autocomplete=off not working on Firefox
I noticed that the latest control.js disables auto complete:
this.element.setAttribute(''autocomplete'',''off'');
So I removed my inline "autocomplete=''off''" from my input fields.
But Firefox still auto completes.
Using the Firefox DOM Inspector I do see that it''s applied
by Ajax.Autocompleter as expected. The Inspector
2007 Sep 17
2
Drb - shared app with multiple private databases - howto?
Hello,
I''ve been trying to get my head around ferret and the one thing that
stumps me is how I might use Drb on a dedicated server with multiple
clients using the SAME application but each with their own private
database and other file assets (in an uploads directory within the
app)
Thank you for any suggestions, pointer etc.
Also I''d be very interested in hearing from those
2006 Jun 16
5
[slightly OT] Problem with subversion 1.3.1 on OSX Tiger
I have a subversion repo on a Debian Sarge server. I do rails
development on two Debian workstations (home, work) and also a
MacBookPro.
I installed subversion from Darwinports. Things worked ok for a while
and I did commits from and updates to all three machines until today.
When I did svn status I noticed a lock on the working dir.
$ svn status
? Rakefile
? readme
! L .
.... etc
I cannot
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi,
Has anyone successfully implemented the :onsubmit option for
form_remote_tag. It doesn''t seem to work for me. Is there any specific
version of rails which is required for the same.
Here''s my piece of code.
<script>
function set_tojid(){
alert(''onsubmit'');
}
</script>
<%= form_remote_tag :update => '''', :url => {
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey,
I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI
autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>),
except for the piece that calls the server for completion data.
Here is my view html:
<input data-autocomplete-source="/searches" id="search-markets"
2006 Mar 13
2
Autocomplete broken after update to Rails 1.0
When I upgraded to 1.0, I broke autocomplete on a field. I''ve done
everything that I can think of to fix the problem, but nothing has
worked. I''m able to recreate a simple autocomplete from examples on the
various tutorials, but my original code just will not work.
<input id="incident_first_party_name" name="incident[first_party_name]"
2012 May 06
2
autocomplete word by word
Hi,
I am trying to implement an autocomplete form with rails, I used jquery
in a first version, to suggest phrases to user and it worked
Now I am trying to have a service of autocomplete word by word, it means
when the user it typing in the text area, I suggest only words and not
phrases and when he finishes the word and starts a new one I do the same
suggestion for the new word
Is there a way to
2005 Aug 02
4
Fwd: Re: disable ''tab'' key wish for incremental autocomplete of textareas
Hi Tim,
Thanks for the commentary, you bring a good point to
light: I think the asynchronous nature of AJAX needs
to be looked at more carefully in our UI assumptions.
The key difference between AJAX auto-complete and any
other browser/OS autocomplete is that we can''t
guarantee having the results ready by the time the
user wants to hit TAB. In the old days we used to
have everything
2006 Feb 13
2
would like to have the input text highlighted in the autocomplete div
Hello everyone,
I would like to have the input text highlighted in the autocomplete div (similar to google suggest)
Any ideas how I can get this working with the autocomplete class ?
Thanks,
Shyam