[Seaside] imageButton and seaside 2.7
michel.bany at gmail.com
Sat Apr 7 19:32:35 UTC 2007
You can use a subclass of WAFileLibrary (see WAFileLibraryDemo as an
Make sure you add the library and upload your file into the image
using the 'config' app.
If you do not like the idea of having graphical files in your image,
you can also use the file system like this
url: (html context urlForDocument: (WACachedDocument fileName:
'yourpicture.png') asMIMEDocument content);
The file must reside in the execution path.
AFAIK, there is currently no conveniency method for the above lengthy
On 18 Apr 2007, at 17:10 , Nicolas Petton wrote:
> I'm new with Seaside and I don't know how to use the imageButton with
> Seaside 2.7.
> I can put an image from the web with :
> html form: [
> html imageButton
> url: 'www.myurl.com/mypicture.png';
> callback: [self inform: 'hello']]
> but it doesn't works with local files, and I didn't find any other
> method to do this.
> With image I do :
> html image
> fileName: 'example.png'.
> Does someone know how it works with local files ?
> Nicolas Petton
> .:! DEBIAN GNU/Linux !:. / _ \
> | / |
> The universal OS | \__/
> Ma clé GPG est disponible ici :
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the seaside