Hi

This is preety usefull stuff. I am doing some dove scouting myselfe, and you
save me some work. twoo point2:
1 your demo page doesn't work in IE (don't know if this is a problem)
2 for this kind of deployment of the dove servlet i think anonymous cloud
login would seem very desirable. you don't want to hardcode account info
into client pages... 

ernst

-----Oorspronkelijk bericht-----
Van: Kees Jongenburger [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 17 februari 2003 11:57
Aan: [EMAIL PROTECTED]
Onderwerp: mmbase dove javascript


Hi

I know I have a weird mind. but I have made some sample javascript dove
 client for mmbase.

The javascrip code to change/commit a node looks like this:
<script>
var doveclient = new DoveClient("http://localhost:8080/xml/dove.xml";);
var dovecloud = doveclient.getCloud("admin","admin2k");

var node  =dovecloud.getNode(213);
node.setStringValue("content","some content");
node.commit();

var relations = node.getRelations();
for (var x = 0 ; x < relations.getLength() ; x++){
        alert(relations.getRelation(x).getType());
}
</script>

it also containt some code to do cloud.getList

I'have setup a demo + download on http://carlit.mine.nu:8080/dovescript/
but the code is also in CVS (speeltuin/keesj/dovescript)

tested under mozilla and IE..

Does anybody have an idea what this can be used for?


of course you have to have the dove servlet active...



--
Kees Jongenburger
Mediapark C101 Hilversum
+31 (0)35 6772910

Reply via email to