As ever putting code out it in the wild has revealed a few bugs: <div>* pasting a large snippet of html, would stop the the translation working back between tags with the "loading" message appearing.</div><div>* unmapped attributes weren't quote escaped.</div>
<div><br></div><div>If you've tried it and just saw "loading" when flipping tabs, try again - I've uploaded a new version and it should be fixed.</div><div><div><br></div><div>Explanation:</div><div>I was using an ajax get request - which encoded the render method. The get string became too large and was failed by the front-end web-server to <a href="http://seasidehosting.st">seasidehosting.st</a> (apache?)</div>
<div>Changing to an ajax post and ensuring I had the latest Seaside code fixed the problem (see <a href="http://code.google.com/p/seaside/issues/detail?id=651">http://code.google.com/p/seaside/issues/detail?id=651</a>)</div>
<div><br></div><div>Nick</div><div><br><div><br><div class="gmail_quote">On 9 September 2011 09:15, radoslav hodnicak <span dir="ltr"><<a href="mailto:rh@4096.sk">rh@4096.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hey, this is pretty useful (the FFplugin too), thanks!<br>
<br>
rado<br>
<div><div></div><div class="h5"><br>
On Fri, Sep 9, 2011 at 8:02 AM, Nick Ager <<a href="mailto:nick.ager@gmail.com">nick.ager@gmail.com</a>> wrote:<br>
> Hi,<br>
> I've been working on an html -> canvas translator. Have a look at:<br>
> <a href="http://seafox.seasidehosting.st" target="_blank">http://seafox.seasidehosting.st</a> and click on "Canvas translator". Then in<br>
> another browser tab bring up your favourite web page<br>
> (e.g. <a href="http://www.seaside.st/" target="_blank">http://www.seaside.st/</a>) highlight a section and copy. Then return to<br>
> the "Canvas Translator" and paste into the text box below the default<br>
> "Rendered html" tab. Be amazed as the html is automatically translated into<br>
> Seaside canvas rendering methods. All the tabbed views are editable and you<br>
> can switch between them, allowing you to edit in one and see the translation<br>
> in another. For example try editing some raw html and flip to the canvas<br>
> view to see the translation to canvas methods.<br>
> The translator is based on the parser I created for the Seafox Firefox<br>
> plug-in. You can download a new version of the plug-in. Improvements<br>
> include:<br>
> * Code formatting better conforms to Seaside's coding conventions.<br>
> * The plug-in now creates an editable syntax highlighted translation (if the<br>
> translation isn't highlighted by again - there's an occasional weird<br>
> first-time only bug)<br>
> * There's a small test-suite for the parser<br>
> You can load the code into your Seaside image with:<br>
> Gofer it<br>
> squeaksource: 'Seafox';<br>
> package: 'ConfigurationOfSeafox';<br>
> load.<br>
> (ConfigurationOfSeafox project version: '0.2-baseline') load.<br>
> Note: I've tested mainly on the Mac in Safari. I'd be interested to hear<br>
> different platform browser combinations work.<br>
> Nick<br>
><br>
</div></div>> _______________________________________________<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>
><br>
><br>
_______________________________________________<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>
</blockquote></div><br></div></div></div>