, * Andreas Oesterreicher and * Rudolf Hangl . */ require_once('../config/vilesci.config.inc.php'); header("Content-type: application/vnd.mozilla.xul+xml"); echo ''; ?> try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); tree = document.getAnonymousElementByAttribute(this ,'anonid', 'tree-notiz'); var col = tree.columns.getColumnFor(document.getAnonymousElementByAttribute(this ,'anonid', 'treecol-notiz-notiz_id')); return tree.view.getCellText(tree.currentIndex, col); } catch(e) { return false; } soap/notiz.soap.php?"+gettimestamp(); SOAPClient.SendRequest(sr,function (respObj) { try { var id = respObj.Body[0].setErledigtResponse[0].message[0].Text; } catch(e) { var fehler = respObj.Body[0].Fault[0].faultstring[0].Text; alert('Fehler: '+fehler); return; } }); } ]]> rdf/notiz.rdf.php?ts="+gettimestamp(); datasource = datasource+"&projekt_kurzbz="+encodeURIComponent(projekt_kurzbz); datasource = datasource+"&projektphase_id="+encodeURIComponent(projektphase_id); datasource = datasource+"&projekttask_id="+encodeURIComponent(projekttask_id); datasource = datasource+"&uid="+encodeURIComponent(uid); datasource = datasource+"&person_id="+encodeURIComponent(person_id); datasource = datasource+"&prestudent_id="+encodeURIComponent(prestudent_id); datasource = datasource+"&bestellung_id="+encodeURIComponent(bestellung_id); datasource = datasource+"&user="+encodeURIComponent(user); //debug('Source:'+datasource); var tree = document.getAnonymousElementByAttribute(this ,'anonid', 'tree-notiz'); //Alte DS entfernen var oldDatasources = tree.database.GetDataSources(); while(oldDatasources.hasMoreElements()) { tree.database.RemoveDataSource(oldDatasources.getNext()); } var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); this.TreeNotizDatasource = rdfService.GetDataSource(datasource); this.TreeNotizDatasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); this.TreeNotizDatasource.QueryInterface(Components.interfaces.nsIRDFXMLSink); tree.database.AddDataSource(this.TreeNotizDatasource); this.TreeNotizDatasource.addXMLSinkObserver({ notiz: this, onBeginLoad: function(aSink) {}, onInterrupt: function(aSink) {}, onResume: function(aSink) {}, onEndLoad: function(aSink) { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); //aSink.removeXMLSinkObserver(this); //debug('onEndLoad start Rebuild'); var tree = document.getAnonymousElementByAttribute(this.notiz ,'anonid', 'tree-notiz'); tree.builder.rebuild(); }, onError: function(aSink, aStatus, aErrorMsg) { alert("error! " + aErrorMsg); } }); tree.builder.addListener({ notiz: this, willRebuild : function(builder) { }, didRebuild : function(builder) { //Workaround damit das Resize des Trees funktioniert var tree = document.getAnonymousElementByAttribute(this.notiz ,'anonid', 'tree-notiz'); tree.columns.restoreNaturalOrder(); } }); } catch(e) { debug("Notiz load failed with exception: "+e); } ]]> content/notiz.window.xul.php'+param,'Notiz','chrome, status=no, width=500, height=350, centerscreen, resizable'); ]]> var projekt_kurzbz = this.getAttribute('projekt_kurzbz'); var projektphase_id = this.getAttribute('projektphase_id'); var projekttask_id = this.getAttribute('projekttask_id'); var uid = this.getAttribute('uid'); var person_id = this.getAttribute('person_id'); var prestudent_id = this.getAttribute('prestudent_id'); var bestellung_id = this.getAttribute('bestellung_id'); var user = this.getAttribute('user'); if(projekt_kurzbz!='' || projektphase_id!='' || projekttask_id!='' || uid!='' || person_id!='' || prestudent_id!='' || bestellung_id!='' || user!='') { this.LoadNotizTree(projekt_kurzbz,projektphase_id,projekttask_id,uid,person_id,prestudent_id,bestellung_id, user); } //debug('Notiz Binding Stop');