Displaying 20 results from an estimated 1000 matches similar to: "in_place_editor_field breaks with onComplet option"
2008 Jan 28
0
in_place_editor_field using onComplete
Can someone please show correct usage of the Rails
in_place_editor_field in conjuction with onComplete? (Actually what I
really want is onSuccess, but I can check the response code.)
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
2006 Jul 11
0
Ajax.InPlaceEditor + onComplete
Hello,
I am trying to use the helper "in_place_editor_field" and pass an
onComplete to it, but it seems that I can''t pass that :success or
:onComplete because they become attributes of the span on to of the
Javascript:
Here is my desired Javascript outcome:
new Ajax.InPlaceEditor(''div_name'', ''link_name'',
2006 Feb 15
3
UserEngine testing
Hi Everybody,
I''m playing around with the engines created by James Adam and I bumped
into the following.
I would like the rake bootstrap command to use the testing database and
I just know there''s
an easy way to do so.
I could have just copied the dev db''s to the test db''s but I think I''m
missing something fundamental here.
Hints are very welcome.
2006 Apr 04
3
How to use in_place_editor_field ?
Hello, I really don''t understand how to use in_place_editor_field
In my controller :
class Admin::CategoriesController < Admin::BaseController
in_place_edit_for :category, :title
def list
@categories = Category.find_all
end
end
In the view list.rhtml
<% @categories.each do |c| %>
<td><%= in_place_editor_field :c, c.title %></td>
# snip
<%
2005 Nov 14
0
in_place_editor_field inside a partial collection
(I''ve already posted this to a quite unrelated thread. Sorry for those
reading this twice.)
Did anybody succeeded in using "in_place_editor_field" inside a
partial collection?
It''s working perfectly in a regular template, but the id part becomes
blank when it''s inside a partial collection.
article_controller.rb:
class ArticleController <
2006 Jan 18
5
Perform action after in-place edit
I want to be able to call an action after performing an edit using the
in-place editor macro. I want to update multiple divs so I was
thinking about using an RJS template. However, I can''t figure out how
to trigger another action after the method created by
in_place_edit_for runs. Is there is an option on Ajax.InPlaceEditor
where I can inject some Element.update calls?
Thanks,
Shane
2006 Mar 28
2
In_place_editor_field throws error ...
I receive the following error:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
when trying to use the in_place_editor_field tag:
<% for employee in @employees %>
<%= in_place_editor_field :employee, employee.fname %>
<% end %>
My model is called Employee and is being populated from a controller
method employees_list:
2008 Jun 16
1
changing the style of in_place_editor_field
Hi...
I''m using in_place_editor_field. I want to change the default style of
in_place_editor_field. I need to apply another style for the label, the
yellow and white highlighting color.
I tried
<%= in_place_editor_field :ci_class, :name, {:id => @ci_class.id},
{:highlightcolor => "#FF0000"} %>
But this is not working. Please help me to change its style.
--
2006 Jul 06
0
Using in_place_editor_field for collections?
I am trying to use in_place_editor_field to make many objects editable
at the same time. I think I solved the first step of this problem;
before it was giving me a problem about referencing a nil, so I did
this:
<%= in_place_editor_field ''question[]'', :name %>
adding the [] seemed to fix things. Now all the fields show up on the
page and they are all clickable. But
2007 Jun 06
0
in_place_editor_field - for multiple fields together
Does anyone know if there is a way to utilize the in_place_editor_field
with multiple fields together? Currently, I use the
in_place_editor_field for one field, but I want to be able to select a
group of fields and have the option to edit any of the grouped fields
and save any changes as a group.
If so, could you provide excamples?
Thanks
--
Posted via http://www.ruby-forum.com/.
2008 Jun 06
0
in_place_editor_field in Rails 2.0.2
I''m attempting to get an in_place_editor_field working in my index
view. I have the following:
index.html.erb
<% for profile in @profiles %>
<% div_for(profile) do %>
<% @profile = profile %>
<%= in_place_editor_field(:profile, :first_name) %>
<% end %>
<% end %>
profiles_controller.rb
def index
@profiles = Profile.find(:all)
2007 Oct 23
0
Applying CSS style to in_place_editor_field?
I have a simple in_place_editor_field but the default style when
clicking it isn''t quite acceptable for my needs.
I tried using options that in_place_editor can take advantage of but I''m
still getting a small field with a very close "Ok" button.
I''m currently using:
<% for note in status_notes.notes %>
<li>
<% @note =
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a
view ''list'' that renders a collection:
<%= render :partial => ''item'', :collection => @items %>
The item partial looks like so:
<div id="item_<%= item.id %>">
...
<div id="price">
<%= in_place_editor_field :item, :price
2006 May 01
0
problem with in_place_editor_field
I can''t seem to pass any options other thant :rows to the in_place_editor
<p><%= in_place_editor_field :gallery, ''description'', {}, {:rows => 2,
:cols => 15} %></p>
:cols is just not working, a quick look at the html source confirms this?
I am using rails 1.0..
2006 Feb 07
0
in_place_editor_field with blank value
I have an in-place editor for my customer.notes attribute. Here''s the view:
<% @customer.notes = ''No notes'' if !@customer.notes ||
@customer.notes.strip == '''' -%>
<%= in_place_editor_field :customer, :notes, {}, { :rows => 2 } %>
2006 Jan 04
2
simple_format and in_place_editor_field
Hi!
How can i do to force an in_place_editor_field to format the text with
simple_format while not editing?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060104/bbd141a2/attachment.html
2008 Aug 26
0
in_place_editor_field doesn't work Float
Hi
Anyone please help to solve the issue. how can I use
in_place_editor_field for float column in DB. It''s works well in varchar
& integer.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email
2007 Nov 18
0
Escaping html entities with in_place_editor_field
I have a field where a user might need to enter text that includes
greater than and less than signs.
I am using in_place_editor_field, so I need a way to tell it to escape
html entities (convert to > and <) when displaying and NOT
escape html entities (just show the greater than and less than signs)
when editing.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You
2006 Mar 22
9
Setting empty fields with in_place_editor_field
Hi all!
Playing around with in_place_editor_field, I found that when you set a
field to be empty, you can''t edit it at all anymore after that. Am I
doing something wrong or is this the way it is intended to be? If so, is
there any way around that behaviour? Is it just styling?
Best regards,
Raphael
--
Posted via http://www.ruby-forum.com/.
2005 Dec 21
0
Prototype: correct useage of onComplete with Ajax.PeriodicalUpdater
Hello all,
I know it''s a Prototype question, but I hope someone can tell me what
I''m doing wrong (I hope Prototype gets documented soon ;-(
Problem: using a onComplete callback with Ajax.PeriodicalUpdater
(using scriptaculous 1.5 with Prototype 1.4)
Works:
function fooBar() {
Element.hide(''foobar'');
}
new