[Seaside] Re: Uploading an Image

John Thornborrow john at pinesoft.co.uk
Fri Apr 20 10:37:27 UTC 2007


dirk newbold wrote:
> Sorry,
>
> Just to display an image in a webpage originally generated by a html
> file but now in Seaside (renderContentOn: html).
>
> e.g. the image is located at:
> c:\Program Files\Cincom\vw7.4.1nc\web\examples
>
> With html and having the image located in the same dir as the html
> file I used:
> <img src="memberMail.gif" alt="Email Member"/>
> Which displayed the image in web page generated by that html file.
>
> I just can't figure out how to do it in Seaside.  I have been fine
> with all the other facits of converting my html files into Seaside but
> for some reason I can't figure this out - I'm affraid I'm just a
> beginner in Smalltalk/Seaside.
>
> Cheers,
>
> Dirk
>
>
> On 4/20/07, *Philippe Marschall* <philippe.marschall at gmail.com
> <mailto:philippe.marschall at gmail.com>> wrote:
>
>     Hi
>
>     I have a bit of a problem understanding what you want to do. Do you
>     want to upload an image, or to serve an image?
>
>     Cheers
>     Philippe
>
>     2007/4/19, dirk newbold <dirkdirk at gmail.com
>     <mailto:dirkdirk at gmail.com>>:
>     > Avi,
>     >
>     > Is this the process to post on the list i.e. emailing
>     >   seaside at lists.squeakfoundation.org
>     <mailto:seaside at lists.squeakfoundation.org> ?
>     >
>     > Question is attached below.
>     >
>     > Does the list get emailed or do I need to login somewhere for it.
>     >
>     > Thanks for your help?
>     >
>     > Cheers,
>     >
>     > Dirk
>     >
>     >
>     > On 4/19/07, Avi Bryant <avi at dabbledb.com
>     <mailto:avi at dabbledb.com>> wrote:
>     > > Hi Dirk,
>     > >
>     > > These are great questions for the seaside list - you can sign
>     up at
>     > > http://lists.squeakfoundation.org/ .
>     > >
>     > > Cheers,
>     > > Avi
>     > >
>     > > On 4/19/07, dirk newbold < dirkdirk at gmail.com
>     <mailto:dirkdirk at gmail.com>> wrote:
>     > > >
>     > > > I feel a bit stupid but I've done all the tutorials on the
>     net and still
>     > > > can't upload an image from a default directory on my server.
>     > > >
>     > > > In html I'd use:
>     > > >
>     > > > <img src="img/memberMail.gif" alt="Email Member"/>
>     > > >
>     > > > But I can't seem to get the following to work:
>     > > >
>     > > > html image: 'img/memberMail.gif' altText: 'Email Member'.
>     > > >
>     > > > I've tried locating the gif in lost of directories including
>     my servers
>     > > > default:
>     > > >
>     > > > $(VISUALWORKS)/web/examples
>     > > >
>     > > > If you could set me straight I'd be very appreciative.
>     > > >
>     > > > Also are there any books on web programming in
>     Smalltalk/Seaside
>     > published.
>     > > > I've looked every where and can't find one.
>     > > >
>     > > > Cheers,
>     > > >
>     > > > Dirk
>     > > >
>     > >
>     >
>     >
>     > _______________________________________________
>     > Seaside mailing list
>     > Seaside at lists.squeakfoundation.org
>     <mailto:Seaside at lists.squeakfoundation.org>
>     > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>     >
>     >
>     _______________________________________________
>     Seaside mailing list
>     Seaside at lists.squeakfoundation.org
>     <mailto:Seaside at lists.squeakfoundation.org>
>     http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
> Click here
> <https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==>
> to report this email as spam.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>   
Hi,

I recently learned about this myself  - have a look at the WAFileLibrary
class, and the example class WAFileLibraryDemo and WAFileLibraryExample.

HTH,
John.

www.pinesoft.co.uk


More information about the seaside mailing list