[Kss-devel] KSS in Plone 2.5 - replaceInnerHTML

Godefroid Chapelle gotcha at bubblenet.be
Sun Oct 21 16:16:32 CEST 2007


Radim Novotny wrote:
> 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,

If you need kukit.js trunk, you'll have to fix PloneAzax as there has 
been some protocol changes.

Look at addHtmlParam in

http://codespeak.net/svn/kukit/kss.core/trunk/kss/core/commands.py

used by ''replaceInnerHTML'' in

http://codespeak.net/svn/kukit/kss.core/trunk/kss/core/plugins/core/commands.py

-- 
Godefroid Chapelle (aka __gotcha) http://bubblenet.be


More information about the Kss-devel mailing list