[Seaside] Javascript question

Bart Veenstra bart.veenstra at gmail.com
Sat Nov 20 11:56:56 UTC 2010


Hi Phil,

Looks like you are creating a tree component? which JS library do you use
for that? I already implemented JSTree so maybe we can join forces?

Regards,

Bart

2010/11/20 Lukas Renggli <renggli at gmail.com>

> > To create the following function:
> >
> > function(node) {
> >        if (node.leaf) {
> >                node.onClick(node.id);
> >
>  {$.ajax({"url":"/CQNowS","data":["_s=VPFmqrxxYQGh1ycn","_k=wjnMpQBbQbIebYiP","2","3="+
> node.id].join("&")})}
> >        }
> > }
>
> The point of the Javascript support classes *is not* to create
> complicated code like this (although it can be done). The idea is
> compose and configure different existing parts with each other. In
> your case I suggest that you put your Javascript functionality into an
> external Javascript file, create your own Seaside wrapper and call it
> from Smalltalk.
>
> > function(node){if("node.leaf"){node.onClick("node.id")}}
> >
> > How do I make the "node.leaf" and "node.id" into references rather than
> strings?
>
> JSStream on: 'node.id'
>
> Lukas
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101120/efa01ead/attachment.htm


More information about the seaside mailing list