[Seaside] Javascript question
Phil
phil at tcp.net.au
Thu Nov 18 21:54:22 UTC 2010
Hi all,
I'm learning the JS Classes and have a couple of issues I can't find answers to.
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("&")})}
}
}
i'm using:
(html javascript
alias: 'node';
call: 'onClick' with: 'node.id';
condition: 'node.leaf') asFunction: #(node)
however it renders:
function(node){if("node.leaf"){node.onClick("node.id")}}
How do I make the "node.leaf" and "node.id" into references rather than strings?
And then how to I get the following into the condition?
jQuery ajax
callback: [:value | self nodeSelected: (self passengerAt: value)]
value: 'node.id'))
Any pointers would be much appreciated.
Cheers,
Phil
More information about the seaside
mailing list