Displaying 20 results from an estimated 700 matches similar to: "Lightning Fast Javascript Auto complete"
2007 Jun 19
1
javascript_tag replacing whitespaces w/ '%20'
javascript_tag replacing whitespaces w/ ''%20''
Hello,
I have a form that tests if a title has been changed since the page
was loaded and the page has been submitted. If the page title has been
changed then a confirm box will ask if the user wants to have the title
changed. The problem is if the person hits cancel, all white spaces
in the title get replaced w/
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi!
Wondering if anyone can tell me what''s wrong with my code?
I''m trying to use the onChange event of a select list to update multiple
divs...
Agile Web Development with Rails (p. 403) suggests using ":complete =>
eval(request.responseText) instead of :update"
I''ve attempted the following test code:
# in the view
<select name="plist",
2006 Mar 13
2
Keypress events with no AJAX needed
Is anyone else finding it frustrating to do in Ruby client-side things
that would be simple in Javascript?
It seems like all of the "helpers" involve server (controller)
communication.
For example, having a text field that just echos below what the user
types.
Is this the only way to do it?
<div id=''word_panel''>
<%= text_field_tag
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the
text area and update a div with the running count of characters in
the text area. I tried "onchange" but that doesn''t update until you
leave the text area. I was able to get it working using AJAX, but
it''s silly to make a needless round trip to the server, when the page
already knows
2006 May 16
0
in_place_editor with local autocomplete
Hi Rails gals n guys
I am trying to enhance the "Lightning-Fast JavaScript Autocompletion"
rails recipe. For those that do not have the pdf-book the recipe
explains how to use a javascript array for an auto-complete text field.
I want to combine this with the in_place_editor call. My current
(unworking) code:
<!-- Load the array for autocomplete -->
<script
2007 May 14
8
Problem with script.aculos.us script
I''m newbie to rails application.
I like to use script.aculos.us script in my app.
I faced the following problem.
1. first i creat my application.
2. Then I copied the files
scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and
slider.js
and prototype.js
into my app/public/javascripts/
3. Then included the <%= javascript_include_tag :defaults %> code into
head
2010 Jun 17
2
Question regarding print
Hi,
Does anybody know how to have output from print, without the leading [1]?
(Or must I use cat/write?)
>out="r15"
>print(out,quote=FALSE)
[1] r15
And I definitely do not want the leading [1] as I want to construct a table
from this.
Ciao, Adolf
------------------------------------------------
Adolf Stips (new email: adolf.stips at jrc.ec.europa.eu)
Global Environment
2011 Dec 12
0
Confidence intervals of gls function?
Dear gls-experts,
while reading and testing some examples of the book
"introductionary time series analysis with R",
I encountered the following fact which puzzles me.
Confidence intervals for global temperature time series (P99)
computed from general least squares (GLS) to fit the time series.
I repeat the example from the book and get the same results:
temp.gls=gls(temp ~
2008 Dec 12
0
default value using Autocompleter.local
I''m using recipe 7 from Rails Recipes to get really fast auto-
completion through Javascript.
I was previously using text_field_auto_complete which lets me define
a :value that appears in the field when the page is loaded - serving
as a default value.
I''d like to preserve this using the "<%= javascript_tag("new
Autocompleter.Local(..."
but I don''t
2010 Jun 16
1
Help asked for automated generation of ncdf variables
Hi,
I'm using the "ncdf" library for creating ncdf files.
But I need to create about 100 variables per file (e.g. single rivers),
So I do not like to create each variable separately.
Unfortunately I found no way to make this work, as I'm unable to create a
correct list of class "var.ncdf".
###code piece
river=list(mode='var.ncdf', length=nriv)
2006 Mar 29
5
Database passwords with numbers
I have database password in my database.yml as "passw0rd" however when I
go to http://localhost:3000/rails/info/properties I get this error:
private method `gsub'' called for 1:Fixnum
But if I just use "password" for my password everything is ok.
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
4
Ruby/OCI8 not working on Rails 1.1
http://rubyforge.org/tracker/?func=detail&atid=1051&aid=3960&group_id=256
I posted this bug yesterday. Seems to be confirmed, since someone else
has the same problem on a different platform (Fedora 4 and Max OS X).
So, if you are using Oracle, don''t be in a rush to upgrade to Rails 1.1
unless you have the time to figure this problem out for yourself.
--
Lori Olson
2006 Mar 18
9
RJS - not working in IE
I searched thru all the postings about RJS, and I didn''t find one person
who complained of problems specific to IE, but that''s what I''ve got.
My environment is:
Rails 1.0 + RJS Plugin
Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support)
Monkeypatched in_place_editor to support evalScripts
I have just started using RJS, and I have two .rjs templates.
2006 Apr 03
2
Problems with STI in has_many/belongs_to in Rails 1.1
I have a problem that surfaced in my attempt to upgrade my application
to Rails 1.1.
We have a STI model on the "belongs_to" side of a has_many/belongs_to
relationship. All my unit tests for this model pass, and the
relationships all seem to work fine.
But in my functional tests, I''m getting errors. I''ve traced it back
into the call to the has_many
2006 Mar 18
2
in_place_editor change request...
Hi,
How do I make a request to the Rails team to include a line something
like:
js_options[''savingText''] = %(''#{options[:saving_text]}'') if options
[:saving_text]
in the in_place_editor method?
script.aculo.us supports the ''savingText'' option to control the text
displayed while saving after an in-line edit. Having the ability to
2006 Jun 15
3
how to give a form a name
Using a <%= form_tag ... %>, how do I give a form a name, so that I can
reference it with javascript? I sure can''t figure this out from the docs...
Thanks,
Shelby
PS - what I am trying to do is just have the focus in the first form field
when the form is loaded. There has to be an easy way to do this, but I
can''t figure it out...
-------------- next part --------------
2007 Sep 05
0
Savage Beast plugin: Question on the reply form
Hello! I have integrated the Savage Beast plugin with my site. For
some reason, during the integration, the standard large black reply
form that gets displayed when a user hits "Reply to topic", is
*always* getting displayed at the bottom of the screen ... before the
user hits "Reply to topic". The built in "cancel" link on the editbox
will not remove the form, and
2006 Mar 28
1
Passing the input name to "text_field_with_auto_complete"
I have a view with two auto complete input boxes. How do I give the
input a name like I can for "text_input" helper?
I''ve looked at the docs
(http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000462)
but cant make sense of it...
<p><label for="search_start_station">From</label><br/>
<%=
2006 Apr 26
3
Setting focus in a rhtml view
How do I set focus on a specific form field when I render a partial from the controller?
I can do it with page[''name''].focus from an RJS view, but I can''t figure out how to do it when rendering this rhtml partial from the controller.
I''m rendering a partial with two fields and neither one has focus until I hit the tab key or put the cursor in a field with the
2010 Jan 18
7
Ruby Array to Java Script Array
Hi,
How can we use an array created in Ruby in Java script ?
Regards,
Prashant
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to