<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>Use a component or use the renderer block like a normal canvasser.<br><br>The examples should load with seaside core.<br><br>RS<br><br>> From: estebanlm@gmail.com<br>> Date: Wed, 29 Jun 2011 23:55:58 -0300<br>> To: seaside@lists.squeakfoundation.org<br>> Subject: [Seaside] something like #callback:value: but for #html: ?<br>> <br>> Hi, <br>> I'm trying to fill an JQAccordion when user opens it, and I think the way to do that is by doing something like this: <br>> <br>> html div <br>> 	script: ( <br>> 		html jQuery new accordion<br>> 			active: self selectedIndex - 1; <br>> 			autoHeight: false; <br>> 			onChangestart: ((html jQuery new <br>> 					alias: 'ui'; <br>> 					access: 'newContent'; <br>> 					call: 'load' with: (html jQuery ajax <br>> 						html: [ :renderer | renderer text: 'TEST' ];<br>> 						fullUrl))<br>> 				asFunction: #(event ui)));<br>> 	with: [ <br>> 		html div id: 'header1'; with: 'header1'.<br>> 		html div.<br>> 		html div id: 'header2'; with: 'header2'.<br>> 		html div ]<br>> <br>> this example is working fine, but I'm always rendering 'TEST'. I need to discriminate which content I need to render, so I need the header id value. Using #callback:value I would call something like: <br>> <br>> 	((html jQuery ajax <br>> 		callback: [ :v | "Some code here" ]<br>> 			value: (html jQuery new <br>> 				alias: 'ui'; <br>> 				access: 'newHeader'; <br>> 				call: 'attr' with: 'id'))<br>> 		asFunction: #(event ui))<br>> <br>> but I don't have nothing similar with #html: .<br>> <br>> of course, I can call first a callback who sets the "current header", then make an ajax call, but that's not efficient (two calls instead one).<br>> so, I would like to have something like #html:value: <br>> <br>> does anybody knows how can I solve this problem?<br>> <br>> thanks,<br>> Esteban<br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            </div></body>
</html>