similar to: in_place_collection_editor

Displaying 20 results from an estimated 100 matches similar to: "in_place_collection_editor"

2006 Aug 02
2
Passing Ajax.InPlaceEditor options
I''ve followed the instructions in the Rails Recipe #1 and have the in_place_editor_field working but now I want to tweak how it looks and behaves. I''d like to be able to override the default yellow highlight color, which is done using the highlightcolor param according to the scriptaculous documentation (unless I''m missing something). I''m new to Ruby and Rails
2006 Nov 04
2
in_place_editor_field submitOnBlur & okButton=false options?
I have a few in_place_editor_fields working fine. I can access some of the script.aculo.us options such as :cols, :save_text, :cancel_text, but how do I access the okButton = false & submitOnBlur options? Basically, I want no submit button, a cancel button, and the ability to submit when I tab out of the field. Is this doable without writing a helper? (avoiding digging that deep so
2008 Jan 21
4
Can't change paramName with InPlaceCollectionEditor
Hi all, I use prototype v1.5 and script.aculo.us controls v1.7.0 I did this simple code : --------------------------------------------------------------------------------------------------- new Ajax.Request("myPageSel.asp", { method: "get", parameters: {r:$el.id}, onSuccess: function(xhr) { new Ajax.InPlaceCollectionEditor($el.id, ''myPageMaj.asp'', {
2005 Nov 29
0
undefined method `link_to'
Hi, all I''m trying call link_to from another helper but got this error: undefined method `link_to'' for module `UserHelper'' how can I get access to helper from another helper? this is my users_helper.rb: module UsersHelper alias ink_to_original link_to alias link_to link_to_permission def link_to_permission(name, options = {}, html_options = nil,
2006 Apr 21
1
how-to pass other values to InPlaceCollectionEditor?
Hi, I am trying to pass others paramenter to the function InPlaceCollectionEditor, but I think that is not possible I have modified some rows controls.js to line 782 from: ####################### this.editField = this.cached_selectTag; if(this.options.loadTextURL) this.loadExternalText(); this.form.appendChild(this.editField); this.options.callback = function(form, value) {
2006 Jul 13
1
From the Agile book, page 144 regarding a div tag helper
Hi. in the Rails Agile book here''s what was happening: >>> module StoreHelper def hidden_div_if(condition, attributes = {}) if condition attributes["style" ] = "display: none" end attrs = tag_options(attributes.stringify_keys) "<div #{attrs}>" end # format_price method ... end Note that we cheated slightly here. We copied code from the Rails
2007 Mar 23
1
How does this helper work? (agile book)
Hello, Im trying to understand how this helper method works: def hidden_div_if(condition, attributes = {}) if condition attributes["style"] = "display: none" end attrs = tag_options(attributes.stringify_keys) "<div #{attrs}>" end This is how they are calling it: <%= hidden_div_if(@cart.items.empty?, :id => "cart") %>
2008 Dec 28
1
escape character problem
Hi, i need to construct a link as following "<a href=\"#{CONFIG[''URLS''][''Xyz'']}\#{url}\"#{tag_options}>#{name || url}</a>" But here due to escape character #{url} not give actual value it treated as a string. how to solve this ? if i do "<a
2006 Mar 07
0
Ajax.InPlaceCollectionEditor problems
Hi all, I''m trying out the new Ajax.InPlaceCollectionEditor in script.aculo.us 1.5.3. I''m able to display the select box properly. However, I''m stumped on how to send my hidden field as well as the value being edited to my form. Can anybody also explain how I can use $F or $S to read my hidden form fields into javascript? Thanks much, Vamsee. -- Posted via
2006 Mar 31
0
info about default value of InPlaceCollectionEditor
I have the follow code: ------------------------------------- <script type="text/javascript"> function setupCategoryEditor(el, url, id_pagam) { var Element = document.getElementById(el); var editor= new Ajax.InPlaceCollectionEditor(el, url, { callback: function(form, value) { return
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
2007 Jul 10
9
Other parameters on InPlaceEditor
Hi to all, I have a doubt on like passing other URL parameters to InPlaceEditor function. For Ajax.Updater I can use "parameters:", but for InPlaceEditor (or InPlaceCollectionEditor) I cannot use "parameters". How I make to pass other parameters to the page that callback? A sample code: ---------------------------------- var editor= new Ajax.InPlaceCollectionEditor(el, url,
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
2006 Mar 07
6
[PATCH] Allow Ajax.InPlaceCollectionEditor to load collection externally
Attached is a patch to allow Ajax.InPlaceCollectionEditor to load the collection using AJAX. It adds a new option, loadOptionsURL, which is the URL used to load the values over the interweb. It expects the server to return <option></option> values. If one of them has a selected="selected" attribute, it will probably be pre-selected. Not tested that though. Also only tested
2008 Jul 14
1
question about method "hidden_div_if" in AWDR 2
I followed the sample code in AWDR 2 like this: store_helper.rb def hidden_div_if(conditions, attributes = {}) if conditions attributes["style"] = "display:none" else attr = tag_options(attributes.stringify_keys) "<div #{attr}>" end end store.html.erb <%= hidden_div_if(@cart.items.empty?, :id => "cart") %> <%=
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
2007 Jul 19
3
InPlace[Collection]Editor rewrite: it's in trunk!
Hi all, For those of you who don''t follow Thomas Fuch''s blog, know that a complete rewrite of InPlaceEditor / InPlaceCollectionEditor just made it into the trunk. You''ll find all the juicy details on Thomas'' post: http://mir.aculo.us/2007/7/17/in-place-editing-the-summer-2007-rewrite Do note that this is my rewrite, so if you find bugs etc., don''t
2005 May 27
0
tag, content_tag: are nil-valued options ever useful?
In a number of places in my code I pass options whose value are '''' or nil to one of the tag-generation helper methods. In the HTML this shows up as, e.g. <span class=""> Now, this can be pretty wasteful, but I don''t want to change my evil ways. Thus I''d rather have the framework throw out these options than do it myself. AFAICT, all tag
2006 Feb 07
0
scope problems testing a helper method that calls link_to()
We''ve been having problems writing functional tests for helper methods that rely on ActionView methods. Here''s a specific example. In application_helper.rb I''ve got a method called ''party_link()ยจ: def party_link(party) link_to party.full_name, { :controller => ''contacts'', :action =>
2006 Feb 21
4
New stuff in script.aculo.us trunk
Heya all, There''s some new stuff in the script.aculo.us trunk as of today that needs to be tested, so maybe give it a shot: * Added Ajax.InPlaceCollectionEditor which uses a SELECT element instead of a text field (see test/functional/ ajax_inplacecollectioneditor_test.html for usage), #3491 [thx anna] * Enable in place editor to use RJS (implements a new evalScripts option for