Scriptalicious: Ajax Inline Text Editor

Maxsilver
Fri, 06 Jun 2008 02:47:51 -0000

Hi, I''m just starting out with Scriptalicious + Prototype, and
I''ve
run into a problem.

I''m trying to create an Ajax.InPlaceEditor that combines the custom
size textbox, and the custom parameter (from the examples in the
scriptalicious documentation)
http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor

I''ve tried a couple different methods (one of which is listed below)
but I can''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
Click me to edit this nice long text.

 new Ajax.InPlaceEditor(''editme2'',
''/demoajaxreturn.html'', {rows:
15,cols:40}, {
callback: function(form, value) { return
''item=123&field=description&myparam=''+escape(value) }
});


Thanks!