[Seaside] Re: [ANN] A/B Testing
jfitzell at gmail.com
Fri Apr 9 20:46:24 UTC 2010
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):
a: [ html image url:'http://www.seaside.st/styles/logo-plain.png' ]
b: [ html image url:'http://www.seaside.st/styles/esug.gif' ]
On Fri, Apr 9, 2010 at 8:58 PM, Paul DeBruicker <pdebruic at gmail.com> wrote:
> Hi Julian,
> On Sun, 04 Apr 2010 04:01:31 -0700 (PDT)
> seaside-request at lists.squeakfoundation.org wrote:
> > Well, I guess it should work, but why do you need a new Renderer? Why
> > not just:
> > user:=ABUser new.
> > html html: (ABTest showVariation: 'sample'
> > a: [ html image
> > url:'http://www.seaside.st/styles/logo-plain.png' ]
> > b: [ html image
> > url:'http://www.seaside.st/styles/esug.gif' ]
> > user: user).
> When I make your change the image in the page is replaced with
> [closure] in PDMainComponent>>renderContentOn:
> Where PDMainComponent is just the class name for my class where I try
> stuff out. I use the new Renderer to get a string of html that can be
> injected into the DOM. I think I'd rather not make a new renderer, but
> I don't know how to show the variation without it. At the same time
> and based on my current level or 'expertise', having the string of html
> means I can reproduce what was shown in other venues more easily should
> the need arise. I just don't understand how the seaside internals work
> well enough to know how to do it another way.
> Thanks for your guidance.
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside