Well I don't know what your #showVariation:a:b:user: method looks like, of course. But, in it, if you simply evaluate either a or b with #value, it should work. Oh, hang on, you wouldn't want the "html html:" part. Just this ought to work (assuming your method evaluates one of the blocks and I'm not missing something about what you're doing):<br>
<br>user:=ABUser new.<br>
ABTest<br> showVariation: 'sample'<br>
a: [ html image url:'<a href="http://www.seaside.st/styles/logo-plain.png" target="_blank">http://www.seaside.st/styles/logo-plain.png</a>' ]<br>
b: [ html image url:'<a href="http://www.seaside.st/styles/esug.gif" target="_blank">http://www.seaside.st/styles/esug.gif</a>' ]<br>
user: user.<br><br>Julian<br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 8:58 PM, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Julian,<br>
<div class="im"><br>
<br>
<br>
On Sun, 04 Apr 2010 04:01:31 -0700 (PDT)<br>
<a href="mailto:seaside-request@lists.squeakfoundation.org">seaside-request@lists.squeakfoundation.org</a> wrote:<br>
<br>
> Well, I guess it should work, but why do you need a new Renderer? Why<br>
> not just:<br>
><br>
> user:=ABUser new.<br>
> html html: (ABTest showVariation: 'sample'<br>
> a: [ html image<br>
> url:'<a href="http://www.seaside.st/styles/logo-plain.png" target="_blank">http://www.seaside.st/styles/logo-plain.png</a>' ]<br>
> b: [ html image<br>
> url:'<a href="http://www.seaside.st/styles/esug.gif" target="_blank">http://www.seaside.st/styles/esug.gif</a>' ]<br>
> user: user).<br>
<br>
</div>When I make your change the image in the page is replaced with<br>
this:<br>
<br>
[closure] in PDMainComponent>>renderContentOn:<br>
<br>
Where PDMainComponent is just the class name for my class where I try<br>
stuff out. I use the new Renderer to get a string of html that can be<br>
injected into the DOM. I think I'd rather not make a new renderer, but<br>
I don't know how to show the variation without it. At the same time<br>
and based on my current level or 'expertise', having the string of html<br>
means I can reproduce what was shown in other venues more easily should<br>
the need arise. I just don't understand how the seaside internals work<br>
well enough to know how to do it another way.<br>
<br>
<br>
Thanks for your guidance.<br>
<font color="#888888"><br>
Paul<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>