Displaying 5 results from an estimated 5 matches for "onloadedexternaltext".
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
...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: function(t) {
+ $(this.options.fieldId).value = t.responseText;
+ },
onclickCancel: function() {
this.onComplete();
},
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
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 02
0
[PATCH] small correction to allow editing of html with Ajax.InPlaceEditor
...r 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, this.options.loadingClassName);
this.editField.disabled = false;
- this.editField.value = transport.responseText.stripTags();
+ this.editField.value = transport.responseText;
},
onclickCancel: function() {
this.onC...
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