[Seaside] new canvas replacement for #anchorWIthDocument: searched

Mart-Mari Breedt breedt_m at aircom.co.za
Mon Sep 4 05:26:03 UTC 2006


Hallo Martin,

Sorry about this, I tested this myself, and you are right, it doesn't
work. I will investigate a bit and see if I can find another solution.

About the mimeType. I normally do something like this:

file := FileStream readOnlyFileNamed: fileName.
mimeType := file mimeType.

Hope this can help.

Kind regards,

Mart-Mari

-----Original Message-----
From: Martin Schubert [mailto:mtin79 at googlemail.com] 
Sent: 01 September 2006 06:58 nm
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] new canvas replacement for #anchorWIthDocument:
searched

Hello Mart-Mari Breedt,
thanks for quick reply.

unfortunatelly this does`t work at all.
ithis is my last version which serves a link to the file contents. but 
the mimeType is not available.
does anybody know how to attach a mimeType or wrap a binary file with 
mimeType in an objects instance (class variable)?

> Hi Martin,
>
> I believe you are looking for something like
>
> html anchor
> 	document: file contents;
> 	mimeType: file mimeType;
> 	fileName: file name;
> 	text: shortName
>
> Kind regards,
>
> Mart-Mari
>
> -----Original Message-----
> From: Martin Schubert [mailto:mtin79 at googlemail.com] 
> Sent: 01 September 2006 03:38 nm
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: [Seaside] new canvas replacement for #anchorWIthDocument:
> searched
>
> hello out there,
> i can`t figure it out how the new canvas api replaces
> anchorWithDocument.
> i want to write a document that first uploads a file and display an 
> anchor to it after uploaded.
>
> html form
>         multipart;
>         with: [
>             html bold: 'Load version from file: '.
>             html break.
>             html fileUpload callback: [:f | file _ f].
>             html space.
>             html submitButton callback: [self save]; text: 'Load'.
>     ].
>
>     file ifNotNil: [
>         html anchor;
>         url: ??file urlFromFile??].
>
> could anyone point me in the right direction? thanks a lot!
> _______________________________________________
> 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
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>   
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the Seaside mailing list