Displaying 20 results from an estimated 6000 matches similar to: "in place editor value of text box"
2006 Jun 09
0
partials and rjs
I must have a misunderstanding of partials, maybe one of you can help me
out. I have a page that initially displayed via the following:
<-- in controller -->
def find_areas_for_country
@country_areas = CountryArea.find(:all, :conditions => ["country_id
= :country", params], :order => "descr asc")
render :partial => ''country_area''
2006 May 20
3
in_place_editor and no access to value
I have the following in my rhtml and I get an error that ''value'' does
not exist. This looks like the examples that I have seen so I am not
sure what I am doing wrong. If I take off the :with part, I get a value
parameter passed to my controller, but then I can''t figure out how to
get the country id passed like I need to.
<%= in_place_editor
2006 Jun 15
0
return from controller not evaluating script
I am using this in my controller to reload the country_area partial in
my form
def add_country_area
render :update do |page|
page[:country_area].reload
end
end
<< in form >>
<span id="country_area">
<%= render :partial => ''country_area'' %>
</span>
<< partial _country_area.rhtml >>
2006 Jan 13
0
Controller part of in-place editing
I''m doing some incremental improvements on scaffolding, and want to add
in-place editing to an admin section. I think I may have the view part
working right (at least, the editor pops up as expected) with this in my
view:
###
<% for link in @links %>
<tr>
<td> <div id="<%= ''url'' + link.id.to_s -%>"><%= link.url
2007 Dec 19
2
undefined method `in_place_editor'
I''m trying to get Globalization to work using the globalize plugin.
In their sample application they use in_place_editor to edit the
translate strings.
<%= in_place_editor "tr_#{tr.id}",
:url => { :action => :set_translation_text, :id => tr.id },
:load_text_url => url_for({ :action => :translation_text, :id =>
tr.id })%>
</p>
I get the
2006 Feb 05
2
in_place_editor is missing load_text_url option
Ajax.InPlaceEditor supports a loadTextURL option. If you look at the
InPlaceEditor page
(http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor)
you''ll see an excellent example in Rails of how you might use that
option textilize in place edited stuff.
Unfortunately, the example doesn''t use the nifty Rails in_place_editor
method because
2006 Jul 11
0
Inplace editor oddity
I''m having issues handling output of a inplace editor function. When the
controller action is successful, it returns the new value that populates the
DIV and all is well. When it fails, it sends a js alert to the user. The
problem is, after it sends the alert (and the user clicks OK) it then spits
back the try/catch javascript code which gets inserted into the DIV. I''ve
tried
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
2006 Jun 12
2
in_place_editor consumes html tags?
I''ve got a bog-standard view which displays textilized data. In the same
view, I have an in_place_editor which uses load_text_url to bring in
non-textilized data when editing.
Now, if I have html tags in the data loaded from load_text_url, they
appear to go missing. I can see the tags in the output from my
controller method using the console, but the tags are not shown in the
2008 Jan 08
0
PwrGSD
Hello List:
Please find uploaded to CRAN a new package, PwrGSD
The package is intended for the design and analysis of group sequential trials
There are two main functions,
(1) GrpSeqBnds: computes group sequential stopping boundaries for interim
analysis of a sequential trial based upon a normally distributed test
statistic. This can be done via the Lan-Demets procedure with
2008 Jan 08
0
PwrGSD
Hello List:
Please find uploaded to CRAN a new package, PwrGSD
The package is intended for the design and analysis of group sequential trials
There are two main functions,
(1) GrpSeqBnds: computes group sequential stopping boundaries for interim
analysis of a sequential trial based upon a normally distributed test
statistic. This can be done via the Lan-Demets procedure with
2009 Feb 04
0
Problem using option packeg with new R version (PR#13498)
Hello, I'm facing a problem, using "optim" packeg. I've written a program and run it using the latest R version 2.8.1,but there was an error message as following:
R version 2.7.2 (2008-08-25) # same result when I use R version 2.8.1,Copyright (C) 2008 The R Foundation for Statistical ComputingISBN 3-900051-07-0R is free software and comes with ABSOLUTELY NO WARRANTY.You are
2007 Dec 21
1
in_place_editor not working for Internationalization
I''m trying to implement internationalization in my app. I followed
the instructions on the Globalize example (http://wiki.globalize-
rails.org/globalize/show/Example+Application), using in_place_editor.
The translation works fine, however, I can''t get in_place_editor to
work to translate the strings.
My controller:
class Admin::TranslateController < ApplicationController
2006 Mar 18
1
Need help .. Rails Recipes, in_place_editor, selecting associations
Hi,
I am currently reading the Rails Recipes book and like the chapter on
providing your own in_place_editor for enumerations / selects.
I understood so far, or I believe that I understood ;-), how to do that
for a field that uses values only, like choosing from "red", "black",
"green". What I fail to understand is how to chose from associated objects?!
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
I''m not asking for help this time! :) :) In almost every Rails
project I create, I find that I want a select() popup menu that is
pre-populated by data from the database. Also, I want an "Other..."
option that presents a text_field_tag to input another (not
presented) option (basically a combo-box). In an attempt to be as
DRY as possible, I''ve come up with
2005 Apr 21
0
Viral activitiy coming from an IP in your network.
Hi, my name is Grant Taylor. I am a subscriber to the LARTC mail list lartc@mailman.ds9a.nl. The LARTC mail lists has been plagued with viral email coming from changing IPs in your one of your subnets. Based on the fact that the WhoIs information below says that the subnet in question is a dial up pool this would explain the changing IPs. In less than 6 days the list has received 14 viral
2009 Jan 26
1
ups emerson liebert GTX2 ESP-II serial protocol demo
2009/1/22 Spiros Ioannou <sivann at gmail.com>
> Cher Arnaud,
>
Hi Spiros,
> I send you a demo that reads info from an Emerson Liebert
> GXT2-10000T230 through the RS-232 port. This uses the "ESP-II (ESP 2)
> Protocol".
> Current supported data includes: measurements (voltage, temperature,
> etc) , ID strings (serial number, etc), status flags (inverter on,
2006 Feb 07
1
Help needed with conflicting EventObserver
Hello everyone,
I have a page that populates/updates make, model and year select lists
via Ajax.Updater and I think that an EventObserver is causing a
conflict.
Here''s what I''m trying to do. I''m using this page as a create and
edit page for a car database. If I''m calling the page in edit mode,
I''ll want the make, model and year set (using the
2006 Mar 01
2
In_place_editor in a For loop
I''m using Ajax to create a list of items. Once these items have been
created the user can edit in place and delete them. I''ve got the ajax
working for delete and removing the element from the page, but the
in_place_editor_field doesn''t seem to like being in a for loop. I''ve
got in_place_editor working for single items, but what''s the syntax
2007 May 06
1
validates_uniqueness_of (with :scope) doesn't seem to work?
I have a master record called ''project'' and a child record called
''agycode''. Obviously, agycode has a project_id FK. I wish to make the
"descr" field unique ONLY within the ''project_id'' ''scope''. Here are the key
pieces of information
Agycode fields (id, project_id, descr)
Here''s the declaration in the