Extend the Author web applet code
Posted: Mon Jun 24, 2013 6:04 pm
Hi there,
I'm using the Author component applet in the browser to edit XML documents. I can check the status by calling:
And I can also get the content:
However when I send the document back and save the isModified() call will show me true - so for it it's still changed. How can I tell the applet that I managed to save the code and only tell me that it's changed when there is a new change in it?
Regarding this - is there a documentation what applet functions are available? (Such as isModified() or getSerializedDocument())? I've checked the ro.sync.ecss.samples classes at the src folder, there I can see it defined. I tried to edit it and rebuild with ant but my new functions weren't available. Is there a way to add new functions that I can call from JS?
Thanks so much.
Peter
I'm using the Author component applet in the browser to edit XML documents. I can check the status by calling:
Code: Select all
var applet = document.getElementById(id).getAuthorComponentSample();
applet.isModified();
Code: Select all
var applet = document.getElementById(id).getAuthorComponentSample();
applet.getSerializedDocument();
Regarding this - is there a documentation what applet functions are available? (Such as isModified() or getSerializedDocument())? I've checked the ro.sync.ecss.samples classes at the src folder, there I can see it defined. I tried to edit it and rebuild with ant but my new functions weren't available. Is there a way to add new functions that I can call from JS?
Thanks so much.
Peter