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
<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=description&myparam='+escape(value) }
});
</script>

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to