[Kss-devel] KSS in Plone 2.5 - replaceInnerHTML

Radim Novotny novotny.radim at gmail.com
Sun Oct 21 14:01:14 CEST 2007


Hi all,

I'm trying to use KSS in Plone 2.5 (at least some basic functions of 
KSS). I'm using azax 1.1 and PloneAzax 1.1 branches. The major problem 
was, function replaceInnerHTML worked only if plaintext result was 
returned from action script (view class in my case). As soon as there 
was some HTML code, nothing happens on client side.

I was pretty sure this works some time ago (simple onclick event with 
replaceInnerHTML action), so I tried to use older version of kukit.js 
package. As I'v discovered, 
http://codespeak.net/svn/kukit/kukit.js/trunk in revision 46020 is 
working fine, but:
- revision 46026 displays error message on javascript console (Unhandled 
error during command execution: Bad payload, expected a text or a CDATA 
node)
- revision 46031 is the same
- .... there is a lot of "Replace string exceptions with proper ones" 
commits
- revision 46140 does not show the error message but silently "does not 
work" at all (spinner displays and hidesm but node contents is not 
replaced).

so I'm stuck on revision 46020.

Has anybody idea, if it is possible to fix replaceInnerHTML in kukit.js 
trunk to work properly in Plone 2.5 (Zope 2.9.8, Five 1.4.4, Firefox)?

Thanks in advance,
-- 
Radim Novotny



More information about the Kss-devel mailing list