similar to: how-to pass other values to InPlaceCollectionEditor?

Displaying 20 results from an estimated 100 matches similar to: "how-to pass other values to InPlaceCollectionEditor?"

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
2007 Jan 11
2
In-place editor for a whole form?
I want to implement in-place editing for a hierarchical structure where the nodes are not simple text fields, but need to be represented by at least two input elements. The Rails helpers only support in-place editing for a text field, scriptaculous''s controls.js beyond that implements support for an in-place editor containing a select element. I need an editor where I essentially
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email address! ---- Attached is a patch to add external (AJAX) loading of content to the InPlaceEditor. 2 extra options have been added: loadUrl: a URL to load the content from. If this is present, it will be used instead of the innerHTML. fieldId: I had to add this so we know what the text field is when we''ve
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question.. I often crash my Safari when using ''Enter'' on InPlaceEditor''s for submitting. Works fine on firefox(win & Mac) - no javascript errors. Anyone else seen this behavior? (Maybe it is just my alterings of InPlaceEditor :-) Best Regards Michael Krog
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,
2005 Oct 16
13
More than one parameter with link_to_remote
Hi all, I''m trying to pass more than one parameters using link_to_remote, but I''m getting a behaviour that seems quite strange to me. Here''s the code: link_to_remote ''some text'', :update => ''form'', :method => ''get'', :url => { :action =>
2005 Sep 01
1
FW: In-place editor inside a Draggable
I was able to do a cheap workaround By putting this: this.editField.focus(); at the end of the enterEditMode: function() this still does not allow highlighting with the mouse. Also if there are regular forms in a draggable the end user is screwed especially when using firefox. -----Original Message----- From: Stephen Major [mailto:smajor@gmail.com] Sent: Thursday, September 01, 2005 3:28 AM
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
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'', {
2006 Apr 04
0
Ajax inPlaceCollectionEditor
How to I get the value passed back to me into a script? And why does evalscripts not work with this function? Deco
2005 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls up to the top. That''s disconcerting, and often ends up with the editable field out of the viewable pane. I can duplicate this on both Mac and PC. Is there a way to prevent this? Even the demo at http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does this. Jay Levitt
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
2006 Mar 02
0
[PATCH] small correction to allow editing of html with Ajax.InPlaceEditor
Ajax.InPlaceEditor will not let you edit HTML as it strips all tags coming from the loadTextURL Ajax callback. Bug or feature? I say bug. The patch below fixes this. -Rob --- js/controls.js.old 2006-03-02 13:46:26.000000000 +0000 +++ js/controls.js 2006-03-02 13:46:29.000000000 +0000 @@ -628,7 +628,7 @@ onLoadedExternalText: function(transport) { Element.removeClassName(this.form,
2008 Jun 19
2
Non editable file_field
Hi, I need to upload files in my application I am using following code <tr> <td width="125">Upload Document:</td><td width="400"><%= form.file_field("filename") %></td> </tr> But I want that the file field that gets displayed in my browser should not be editable. i.e user should be able to select the file through the
2006 Sep 25
3
In place editing an empty field
I am trying to use the Scriptaculous InPlaceEditor and in some cases the field will be empty. That is, the field currently has no value but the user wants to enter a value. The InPlaceEditor appears to not work in this case. Other identical fields (except wit different ids and some value) do work. I have tried using a nonbreaking space (&nbsp;), and this does cause the editor to appear,
2006 Apr 22
3
quick ''link_to_remote'' question
Hi all i''m using link_to_remote to render different sets of text-input fields. i''m setting up links in a sidebar to do this so, in my _sidebar.rhtml i have <%= SidebarItem(''catalogue'') %> this works...(in works.helper.rb) def SidebarItem(name) link_to_remote "#{name}", :update => ''EditFields'',
2006 Apr 28
4
can someone help DRY a noob? thanks...
hi all i''m trying to pass a variable name right round the block and need a hand to ease my aching brain. ##in my sidebar i have <li><%= SidebarItem(''catalogue'') %></li> <li><%= SidebarItem(''provenance'') %></li> <li><%= SidebarItem(''status'') %></li> ##linked to a
2006 Mar 25
0
in_place_collection_editor
Hi, I''m trying to write a helper for Scriptaculous'' InPlaceCollectionEditor component. I''ve already submitted a patch (http://dev.rubyonrails.org/ticket/4302). This was a drunk patch; it needs a bit of work (Don''t drink & code!). So far I''ve gotten it to work correctly with normal collections, but I want to use it for belongs_to relations as
2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
Ok, so I posted this on the ''ruby on rails'' newsgroup (http://groups.google.com/group/rubyonrails/browse_frm/thread/cfce770d3fbfbd1f/a51aad47e46e2adf#a51aad47e46e2adf) but didn''t get very far. Hopefully this community will be able to help or let me know whether this is a genuine rails bug. This is a lengthy post, but please bear with me. So, I am trying to cache