Displaying 5 results from an estimated 5 matches for "loadexternaltext".
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:
#######################
var extra_param = this.options.extra_param; //a.alonzi
this.editField =...
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
...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...'';
+ }
},
+ loadExternalText: function() {
+ new Ajax.Request(
+ this.options.loadUrl,
+ {
+ asynchronous: true,
+ onComplete: this.onLoadedExternalText.bind(this)
+ }
+ );
+ },
+ onLoadedExternalText: functio...
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
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
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