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 &quot;loading&quot; message appearing.</div><div>* unmapped attributes weren&#39;t quote escaped.</div>
<div><br></div><div>If you&#39;ve tried it and just saw &quot;loading&quot; when flipping tabs, try again - I&#39;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">&lt;<a href="mailto:rh@4096.sk">rh@4096.sk</a>&gt;</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 &lt;<a href="mailto:nick.ager@gmail.com">nick.ager@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I&#39;ve been working on an html -&gt; canvas translator. Have a look at:<br>
&gt; <a href="http://seafox.seasidehosting.st" target="_blank">http://seafox.seasidehosting.st</a> and click on &quot;Canvas translator&quot;. Then in<br>
&gt; another browser tab bring up your favourite web page<br>
&gt; (e.g. <a href="http://www.seaside.st/" target="_blank">http://www.seaside.st/</a>) highlight a section and copy. Then return to<br>
&gt; the &quot;Canvas Translator&quot; and paste into the text box below the default<br>
&gt; &quot;Rendered html&quot; tab. Be amazed as the html is automatically translated into<br>
&gt; Seaside canvas rendering methods. All the tabbed views are editable and you<br>
&gt; can switch between them, allowing you to edit in one and see the translation<br>
&gt; in another. For example try editing some raw html and flip to the canvas<br>
&gt; view to see the translation to canvas methods.<br>
&gt; The translator is based on the parser I created for the Seafox Firefox<br>
&gt; plug-in. You can download a new version of the plug-in. Improvements<br>
&gt; include:<br>
&gt; * Code formatting better conforms to Seaside&#39;s coding conventions.<br>
&gt; * The plug-in now creates an editable syntax highlighted translation (if the<br>
&gt; translation isn&#39;t highlighted by again - there&#39;s an occasional weird<br>
&gt; first-time only bug)<br>
&gt; * There&#39;s a small test-suite for the parser<br>
&gt; You can load the code into your Seaside image with:<br>
&gt; Gofer it<br>
&gt; squeaksource: &#39;Seafox&#39;;<br>
&gt;   package: &#39;ConfigurationOfSeafox&#39;;<br>
&gt;   load.<br>
&gt; (ConfigurationOfSeafox project version: &#39;0.2-baseline&#39;) load.<br>
&gt; Note: I&#39;ve tested mainly on the Mac in Safari. I&#39;d be interested to hear<br>
&gt; different platform browser combinations work.<br>
&gt; Nick<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<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>