Try to precede or surround the button with empty spaces:
for example
  doc.SetText(' ')
  doc.AppendElement(document.FormElement('BUTTON', 'subscribe',
'Subscribe'))
or
  doc.SetText('  ')
  doc.InsertElement(1, document.FormElement('BUTTON', 'subscribe',
'Subscribe'))

I've had the most weird behaviour on inserted elements when they were
not preceded by a printable character. This usually happened when
somebody changed the content of the blip containing the button.
Surrounding it with spaces somehow seems to protect the button.

Please let me know if this solved your issue, because then it might be
linked to this problem: 
http://code.google.com/p/google-wave-resources/issues/detail?id=176&start=100
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" 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/google-wave-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to