Make sure on the server side that you print the new value as the
response. If you look at the IPE code, you will see that on completion,
it uses Element.update with the responseText.
Colin
mrkevans wrote:>
> Hi All,
>
> I am using the In-Place editor and I am having issues with after the
> update is completed, the updated text does not reload?
>
> I know the update is occuring because my database entry is updated, and
> if refresh the page, the update text is there, but i would like to see
> the updated text appear after the user clicks save.
>
> Here is what i have:
> ************************************
> <span id="tobeedited4">
> <%
> var rs = getRSwhere("designers","ID=1");
>
Response.write(StringValue(unescape(rs.fields("http").value)));
> rs.close();
> %></span>
> <script>
> new Ajax.InPlaceEditor($(''tobeedited4''),
''update.asp'',
> {ajaxOptions: {method: ''get''},
> callback: function(form, value) { return
''updateString='' +
> escape(value)}
> });
> </script>
> **************************************
>
> Im new to all this. But im close
>
> Thanks in advance.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---