sample code for buildout--paste into scriptlet editor and execute to test the Versalent/KnowNow API //************* STEP 1 *************************// //create new knownow client and set configuration parameters var objChild = new KNBlockX("kn1",10,150,700,250); objChild.setBackgroundColor("scrollbar"); objChild.setCSSOverride("border:solid 1px threedshadow;"); objChild.setOverflow(JSXGUI.OVERFLOWSCROLL); objChild.setTopic("/what/kntest"); objChild.setOptions("{kn_expires:'infinity',do_max_n:10}"); objChild.setLoadState(JSXXML.LOADREQUEST); objChild.setOnMessageScript("this.setLoadState(JSXXML.LOADREQUEST);this.repaint();"); objChild.setPersistenceType(KNEVENT.PERSISTADD); objChild.setStatusPersistenceType(KNEVENT.PERSISTADD); getVO("JSXBODY").setChild(objChild); getVO("JSXBODY").repaint(); getJO("b0").setKNtopic("/what/kntest"); getJO("b0").setKNoptions("{kn_expires:'infinity',do_max_n:10}"); getJO("b0").setKNheaderList("kn_payload,kn_id"); getJO("b0").setKNenabled(true); getJO("b0").repaint(); //************* STEP 2 *************************// //publish an event object and simulate publish event kn.publish("/what/kntest",{kn_payload:"hello world2"});