search for: loadtexturl

Displaying 16 results from an estimated 16 matches for "loadtexturl".

2007 May 18
1
How do I use loadTextURL?
Hi, How exactly do I use loadTextURL? I can''t find any instructions. I was under the impression I just set loadTextURL to a script that will return the data I want, but no matter what I do, it just continues to say loading. For example: new Ajax.InPlaceEditor(''edit_author'', ''inc/blogedit.phpr'&...
2005 Nov 23
2
Changing loadTextURL
I have an InPlaceEditor, when it is clicked on it loads the unformatted textile text from the server. When i click on menu items, I change the content to the formatted text and i want to change the file the InPlaceEditor will load. I thought a simple loadTextURL: "getPage.php?page=" + currentPage; would do. But currentPage is always empty... It''s baffling :p Is there a way to fix this problem, or perhaps, is there a better way of going about this? Thanks. _________________________________________________________________ Express yours...
2006 Feb 28
0
loadTextURL
When i load text into the script using loadTextURL: "getPage.php", It loads what i want it to load but i can not edit it. IS this an error on my part or what new Ajax.InPlaceEditor(''tobeeditedTD'', ''changelink.php'', { loadTextURL: "getPage.php", callback: function(form, value) { return '...
2005 Oct 07
2
InPlaceEditor
Hi all, I was wondering if I could get some help with using Ajax.InPlaceEditor. I want to use loadTextURL to get the text, as it says on the bottom of the documents ''How to edit server side formatted text (formatted with eg. textile)''. My question is how do I know which inplaceedit I''ve clicked? So that I know which id I need to get the text from in the mysql ''th...
2005 Sep 12
1
Edit In Place: text with line breaks
All, I need to apply EditInPlace to a block of text that has line breaks. I''d like to have the editable text load instantly by grabbing the text from the page instead of using the "loadTextURL" option. However, this will pull in the html formatting ( <br> and <p>). Wanted to see what ideas the list had as far as making this possible - the best idea I''ve had so far are to have loadTextURL call a javascript function to substitute <br>s and <p>s with l...
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...
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.alonz...
2005 Oct 31
2
Inplaceeditor and a tooltip on mouserollover?
...want to display next to it a "delete" link. One of the things I''ve tried is this: <script language="JavaScript"> new Ajax.InPlaceEditor(''answer_<%= answer[''id''] %>_view'', ''update_answer'', {rows:2,cols:40,loadTextURL:"getAnswer"},onMouseover:"Element.show (''delete'')";); </script> I''m am a newbie a javascript, so examples are appreciated. Thanks, Steve _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0I...
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
2006 Feb 18
3
Edit in Place
...gt; "<%= @fancy_text %>" end #view ( of my_action.rhtml ) <p id="editme2"><%= textilize( @fancy_text )</p> <script language="JavaScript"> new Ajax.InPlaceEditor(''editme2'', ''update_text'', {rows:15,cols:40,loadTextURL:''return_unformatted_text''}); </script> They have this example at their site. What else should I do because if doing just that, it doesn''t work. Thanks -- Posted via http://www.ruby-forum.com/.
2007 Apr 09
0
Unobtrusive IPE -- comments, please
...ent.stop(e); var editListing = new Ajax.InPlaceEditor("listing_body", "ajax_update.php", {rows:20,cols:50, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); editListing.dispose(); }, loadTextURL: "get_raw.php?id=<?= $id ?>&field=description", ajaxOptions: {method: "post"}, callback: function(form, value) { return "id=<?= $id ?>&field=description&myparam=" + encodeURIComponent(value) } }); if(editListing) editListing.en...
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....
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
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 Mar 25
0
in_place_collection_editor
..._options[''loadingText''] = %(''#{options[:loading_text]}'') if options[:loading_text] + js_options[''externalControl''] = "''#{options[:external_control]}''" if options[:external_control] + js_options[''loadTextURL''] = "''#{url_for(options[:load_text_url])}''" if options[:load_text_url] + js_options[''ajaxOptions''] = options[:options] if options[:options] + js_options[''callback''] = "function(form) { return #{opt...