This looks like an ideal solution. Thanks!
> Date: Mon, 23 Sep 2013 09:54:34 +0100 > Subject: Re: Encoding a template as a valid JSON String > From: lance.j...@googlemail.com > To: users@tapestry.apache.org > > Since colorbox supports 'inline' option you can solve this problem without > ever needing the HTML of the element you want to display. > > Just render the colorbox content in a hidden div and use > $("#link").colorbox({inline:true, href:$("#showMe")}