[Seaside] seaside + svg
Philippe Marschall
philippe.marschall at gmail.com
Sun Feb 11 09:41:07 UTC 2007
2007/2/11, Mircea Lungu <mircea.lungu at lu.unisi.ch>:
> Hello,
>
> I am new to Seaside and I am trying to write a small application
> which uses svg graphics. I have created a new FileLibrary in which I
> added an svg file: 'abstract.svg'.
>
> I have then created a component which has the following is in the
> renderContentOn: method:
>
> ...
> (html attributes)
> at: 'type' put: 'image/svg+xml';
> at: 'src' put: '/seaside/go/files/WAMyFileLibrary/abstract.svg';
> at: 'width' put: '400';
> at: 'height' put: '400'.
> html tag: 'embed'.
> ...
>
> The issue is that every time I load the page I get a download window
> instead of seing some fancy graphics. Is there anything I can do
> about this problem? Does anybody know of any tutorial for seaside+svg?
I think this is a bug in WAFileLibrary when it comes to the SVG mime
type because
(html tag: 'embed')
attributeAt: 'type' put: 'image/svg+xml';
attributeAt: 'src' put:
'http://croczilla.com/svg/samples/arcs1/arcs1.svg'.
(this is canvas API)
works for me
Cheers
Philippe
> Thanks,
> Mircea.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the Seaside
mailing list