[Seaside] canvas translator & new version of Seafox
nick.ager at gmail.com
Fri Sep 9 09:27:57 UTC 2011
As ever putting code out it in the wild has revealed a few bugs:
* pasting a large snippet of html, would stop the the translation working
back between tags with the "loading" message appearing.
* unmapped attributes weren't quote escaped.
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.
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
Changing to an ajax post and ensuring I had the latest Seaside code fixed
the problem (see http://code.google.com/p/seaside/issues/detail?id=651)
On 9 September 2011 09:15, radoslav hodnicak <rh at 4096.sk> wrote:
> hey, this is pretty useful (the FFplugin too), thanks!
> On Fri, Sep 9, 2011 at 8:02 AM, Nick Ager <nick.ager at gmail.com> wrote:
> > Hi,
> > I've been working on an html -> canvas translator. Have a look at:
> > http://seafox.seasidehosting.st and click on "Canvas translator". Then
> > another browser tab bring up your favourite web page
> > (e.g. http://www.seaside.st/) highlight a section and copy. Then return
> > the "Canvas Translator" and paste into the text box below the default
> > "Rendered html" tab. Be amazed as the html is automatically translated
> > Seaside canvas rendering methods. All the tabbed views are editable and
> > can switch between them, allowing you to edit in one and see the
> > in another. For example try editing some raw html and flip to the canvas
> > view to see the translation to canvas methods.
> > The translator is based on the parser I created for the Seafox Firefox
> > plug-in. You can download a new version of the plug-in. Improvements
> > include:
> > * Code formatting better conforms to Seaside's coding conventions.
> > * The plug-in now creates an editable syntax highlighted translation (if
> > translation isn't highlighted by again - there's an occasional weird
> > first-time only bug)
> > * There's a small test-suite for the parser
> > You can load the code into your Seaside image with:
> > Gofer it
> > squeaksource: 'Seafox';
> > package: 'ConfigurationOfSeafox';
> > load.
> > (ConfigurationOfSeafox project version: '0.2-baseline') load.
> > Note: I've tested mainly on the Mac in Safari. I'd be interested to hear
> > different platform browser combinations work.
> > Nick
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside