[Grok-dev] Re: AJAX example for Uli using Mochikit and
sebastian at urbantalk.se
Mon May 28 07:37:01 EDT 2007
A quick comment. Plone is not really aimed at being lightweight, so I
am guessing KSS was a good choice. The Grok management app, however,
should definitely be lightweight :).
I am certain my suggested approach could easily be ported to support
any js-library that supports registering events in the same way
Mochikit does, in which case we are talking maybe 50 lines of code. I
also think it would be less intrusive than choosing the KSS approach
(no KSS package, no extra python code).
I believe it is worth for Uli to spend an hour or two looking at my
sample app just to see how easy it is to implement.
Mind you, this is just my opinion. :)
26 maj 2007 kl. 13.04 skrev Martin Aspeli:
> Sebastian Ware wrote:
>> This is what it looks like in action:
> Just FYI, in terms of Ajax in Zope 3, we have:
> - KSS (http://kssproject.org), which is what powers AJAX in Plone
> 3. This is designed so that it works in "pure Zope 3". This is a
> bit "different" in that you generally don't write Java Script at
> all. Take a look at the demos on that website to see what I mean. I
> know Philipp did some work with KSS in Grok a while ago.
> - jQuery is being used by z3c.form, apparently.
> - Some things in the z3c.widgets package uses Prototype. Note sure
> how widely used they are, though.
> The problem with JS solutions is that you can't just pick and
> choose for different applications. Using more than one AJAX library
> simultaneously sometimes leads to conflicts, quite likely causes
> inconsistent UI/look-and-feel and almost certainly bloats the page
> download size and increases page load time.
> There was a huge debate prior to Plone 3, about a year ago, about
> whether to use KSS (which we went with in the end) or Bling (which
> is just a way of using Prototype in page templates). I really don't
> want to have that debate again, but it's important to pick carefully.
> Acquisition is a jealous mistress
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev