Maybe there are mistakes in the tutorial? For example
Tutorial say Paste the following code into ksstutorial-configure.zcml: <include package="ksstutorial"/> ksstutorial zope can't find I write in my ksstutorial-configure.zcml <include package="kssplugintutorial"/> 2008/9/5 Vladislav Vorobiev <[EMAIL PROTECTED]>: > Hello, > > I tryed to create a kssplugintutorial. > It seems to be allright, but onload I get an error: > > Firebug say > > # > Loading KSS engine. > uncaught exception: [Exception... "Could not convert JavaScript > argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" > location: "JS frame :: http://localhost/++resource++kukit-src.js :: > anonymous :: line 569" data: no] > # > > What does it mean in my situation? I use no plone. > My software: python2.4.5 and Zope2.11. > > Vlad > > 2008/9/5 Vladislav Vorobiev <[EMAIL PROTECTED]>: >> It's time to write plugins. >> I try it. >> Thanks >> Vlad >> >> 2008/9/4 Godefroid Chapelle <[EMAIL PROTECTED]>: >>> Vladislav Vorobiev wrote: >>>> >>>> Hi, >>>> >>>> I am looking for feasibility to load and execute javascript. >>>> >>>> My kss >>>> >>>> #myEditor:click { >>>> action-server: textEditKss; >>>> } >>>> >>>> myScript >>>> con="""aaaaa<script>alert('sasa');</script>aaaaaaaaa""" >>>> core=getKSSCommandSet('core').replaceInnerHTML('#myEditor, >>>> container.toUnicode(con)) >>>> return renderKSSCommands() >>>> >>>> my answer >>>> <?xml version="1.0" encoding="utf-8" ?> >>>> <kukit xmlns="http://www.kukit.org/commands/1.1"> >>>> <commands> >>>> <command selector="#myEditor" name="replaceInnerHTML"selectorType=""> >>>> <param >>>> name="html"><![CDATA[aaaaa<script>alert('sasa');</script>aaaaaaaaa]]></param><param >>>> name="withKssSetup">True</param> >>>> </command> >>>> </commands> >>>> </kukit> >>>> >>>> But alert() will not executing by Browser. >>>> I need it for initialisation of Epoz editor. >>>> >>>> Best regards >>>> Vlad >>> >>> When you need to execute specific JS code, you can register an >>> action/command with KSS. >>> >>> look in kss/core/kukit/kukit/plugin.js how the core actions are registered. >>> >>> Or rather, read the following tutorial >>> >>> http://kssproject.org/documentation/tutorials/creating-a-kss-plugin >>> >>> -- >>> Godefroid Chapelle (aka __gotcha) http://bubblenet.be >>> >> >> >> >> -- >> Best Regards >> Vlad Vorobiev >> http://www.mymir.org >> > > > > -- > Best Regards > Vlad Vorobiev > http://www.mymir.org > -- Best Regards Vlad Vorobiev http://www.mymir.org _______________________________________________ Kss-devel mailing list Kss-devel@codespeak.net http://codespeak.net/mailman/listinfo/kss-devel