Not sure what you're asking. Are you trying to do an update (replace the contents of the element) or an insert? Insert takes a hash:
$("layoutMessages").insert({before: "asdf"}); $("layoutMessages").insert({after: "asdf"}); $("layoutMessages").insert({top: "asdf"}); $("layoutMessages").insert({bottom: "asdf"}); On Wed, Jun 4, 2008 at 1:15 PM, richcollins <[EMAIL PROTECTED]> wrote: > > I'm developing an application that requires knowledge of presence for > a web page. When the user leaves (onunload), I do an Element#insert > followed by a synchronous XHR: > > > $("layoutMessages").insert('<p class="warning">Leaving Draft ...</ > p>'); new Ajax.Request('/drafts/1/leave', {asynchronous:false, > evalScripts:true, method:'delete', parameters:'authenticity_token=' + > encodeURIComponent('30858d71f4666124c22abcd63b24c6e3b7c31db1')}) > } > > The insertion never appears in the browser. Is there a way to ensure > that it will? -- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---