In the code --
"new Ajax.InPlaceEditor('id', 'url', { callback: function(form, value)
{ return 'myparam=' + escape(value) }})"
I implemented a variant --
"<span id='history'>".$history."</span>"
Followed by the javascript --
"new Ajax.InPlaceEditor('history', 'urlsnipped?catid=$catid',
{rows:15,cols:80,callback: function(form, value) { return 'myparam=' +
escape(value) } });"
On the following page where the data is being sent to, I am receiving
the $catid variable using $_GET. I am unsure how to pass the edited
text within the implementation so that I can update the history
variable to the database.
Any pointers would be helpful, thanks!
Sherman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---