Displaying 13 results from an estimated 13 matches for "editfield".
2006 Apr 22
3
quick ''link_to_remote'' question
...put 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'',
:url=> {:action => name, :id => @work.id, :layout => false }
end
and i have the following in works.controller.rb
def catalogue
@work = Work.find(params[:id])
render :partial => ''catalogue''
end
but when i try to...
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) {
return "value=" + encodeURIComponent(value);
}
#######################
to:
#######################...
2006 Apr 28
4
can someone help DRY a noob? thanks...
...taing a line like
## def catalogue
render (:template => ''admin/works/catalogue'', :layout => false)
end
all of which call an RJS with same three names - ie catalogue.rjs - each
RJS contains something like...
## if @updated
page.replace_html ''EditFields'', :partial => ''catalogue''
end
so how can i dry it up and end up with something like this?
##helper
def SidebarItem(NAME)
link_to_remote "#{NAME}",
:url=> {:action => SOMEACTION(NAME), :id => @work.id, :layout =>
false}...
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 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
2006 Mar 02
0
[PATCH] small correction to allow editing of html with Ajax.InPlaceEditor
...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, this.options.loadingClassName);
this.editField.disabled = false;
- this.editField.value = transport.responseText.stripTags();
+ this.editField.value = transport.responseText;
},
onclickCancel: function() {
this.onComplete();
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 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: Thu...
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
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 ( ), and this does cause the
editor to appear,
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
...|| 0;
if (size != 0)
textField.size = size;
@@ -562,13 +565,34 @@
textArea.value = this.getText();
textArea.rows = this.options.rows;
textArea.cols = this.options.cols || 40;
+ textArea.id = this.options.fieldId;
form.appendChild(textArea);
this.editField = textArea;
}
},
getText: function() {
- return this.element.innerHTML;
+ if (this.options.loadUrl == null)
+ {
+ return this.element.innerHTML;
+ }
+ else
+ {
+ this.loadExternalText();
+ return ''loading...'';
+ }
},
+ loadExternal...