search for: editme2

Displaying 3 results from an estimated 3 matches for "editme2".

Did you mean: editme
2008 Jun 06
2
Scriptalicious: Ajax Inline Text Editor
...t seem to get them to work. Sometimes the browser runs the javascript, and ignores the size portion, and sometimes it just doesnt run it at all (jscript error on page) What am I doing wrong? // using (row 15, col 40) for custom size, and custom parameters in the same inline editor <p id="editme2">Click me to edit this nice long text.</p> <script type="text/javascript"> new Ajax.InPlaceEditor(''editme2'', ''/demoajaxreturn.html'', {rows: 15,cols:40}, { callback: function(form, value) { return ''item=123&field=descrip...
2006 Feb 05
2
in_place_editor is missing load_text_url option
...extURL''] = "''#{url_for(options[:load_text_url])}''" if options[:load_text_url] And now I''m able to create in place editors that get their original text from the server (not from the DOM). So from the scriptaculous example, this code: <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> becomes this: <p...
2006 Feb 18
3
Edit in Place
...end def return_unformatted_text #get your text and return it without the formatting @fancy_text = "Some fancy edited, *bold* and _emphasized_ text." render :layout => false, :inline => "<%= @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 exampl...