Okay, new question....
I've got the inplace editor working for the most part but now I'm
having issues saving info to my DB and displaying the new text. My
editor script now looks as follows:
<script type=\"text/javascript\">
new Ajax.InPlaceEditor('editNote', 'saveNotes.php', {rows: 5,cols:40,
callback: function(form, value){return 'id=".$mainID."&content=' +
escape(value) +\"&\"}});</script></div>\n");
when I look at the post request in fire bug I see this:
id=18596417tb&content=another%20notes%20test&editorId=editNote
saveNotes.php is looking for the id=SomeID and content=SomeContent
if I put saveNotes.php?id=18596417tb&content=another%20notes
%20test&editorId=editNote in my browser it updates the DB just fine
However, from the in place editor it is not updating the db nor is is
displaying the text I entered.. any ideas/suggestions? 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
-~----------~----~----~----~------~----~------~--~---