[aida] displaying images

Ching de la Serna ching.dls at gmail.com
Fri Feb 11 19:20:35 CET 2011


Hi Janko,

This is what I have for AIDASite default homeDirectory:
AIDASite default homeDirectory  *'.\'
*I am on Windows. So far, nothing is working for me as far as displaying
images from home directory.

Regards,

ching

On Sat, Feb 12, 2011 at 1:52 AM, <aida-request at aidaweb.si> wrote:

> Send Aida mailing list submissions to
>        aida at aidaweb.si
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.aidaweb.si/mailman/listinfo/aida
> or, via email, send a message with subject or body 'help' to
>        aida-request at aidaweb.si
>
> You can reach the person managing the list at
>        aida-owner at aidaweb.si
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Aida digest..."
>
>
> Today's Topics:
>
>   1. Re: Aida Digest, Vol 45, Issue 4 (Ching de la Serna)
>   2. Re: displaying photos or images (Janko Miv?ek)
>   3. displaying photos (Ching de la Serna)
>   4. Re: displaying photos (Nicholas Moore)
>   5. Re: displaying photos (Janko Miv?ek)
>   6. displaying photos (Ching de la Serna)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 11 Feb 2011 22:28:41 +0800
> From: Ching de la Serna <ching.dls at gmail.com>
> Subject: Re: [aida] Aida Digest, Vol 45, Issue 4
> To: aida at aidaweb.si
> Message-ID:
>        <AANLkTikqoz5L1K-SM-+-vQQAsxBAy-z-nN3j+tWnSShV at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Herbert,
>
> Thanks for responding. I did as you suggested and the "Waiting for
> localhost...' notification disappeared but no images were displayed.
> I tried different variations like putting the file on the same image as
> Squeak and using 'file:///pap.jpg' and nothing worked.
>
> Ching
>
> On Fri, Feb 11, 2011 at 7:00 PM, <aida-request at aidaweb.si> wrote:
>
> > Send Aida mailing list submissions to
> >        aida at aidaweb.si
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >        http://lists.aidaweb.si/mailman/listinfo/aida
> > or, via email, send a message with subject or body 'help' to
> >        aida-request at aidaweb.si
> >
> > You can reach the person managing the list at
> >        aida-owner at aidaweb.si
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Aida digest..."
> >
> >
> > Today's Topics:
> >
> >   1. displaying photos or images (Ching de la Serna)
> >   2. Re: displaying photos or images (Herbert K?nig)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Fri, 11 Feb 2011 00:12:39 +0800
> > From: Ching de la Serna <ching.dls at gmail.com>
> > Subject: [aida] displaying photos or images
> > To: aida at aidaweb.si
> > Message-ID:
> >        <AANLkTikC8HSA50aWO3Y1UD_VU-cytsUGAMHGTi7rfF9P at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Hi,
> >
> > I would like to add photographs or images to my page and I have this:
> >
> >            e addImage: 'photos\pap.jpg';
> >
> > There are no errors but no photos are displayed either. The browser says
> > "Waiting for localhost"
> > What is the proper way to display photos in Aida?
> >
> > Ching de la Serna
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> >
> http://lists.aidaweb.si/pipermail/aida/attachments/20110211/ac53a779/attachment.html
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Thu, 10 Feb 2011 17:54:45 +0100
> > From: Herbert K?nig <herbertkoenig at gmx.net>
> > Subject: Re: [aida] displaying photos or images
> > To: AIDA/Web general discussion list <aida at aidaweb.si>
> > Message-ID: <1308818279.20110210175445 at gmx.net>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi Ching,
> >
> > CdlS> I would like to add photographs or images to my page and I have
> this:
> >
> > CdlS>             e addImage: 'photos\pap.jpg';
> >
> > not really sure but I believe, this defaults to a methodImage (a
> > method returning a ByteArray containing the contents of the image).
> >
> > For small resources WebMethodResources are a cool thing because they
> > are versioned with Monticello.
> >
> > See e.g. the comment in WebStyle>>importImage:from:
> >
> > CdlS> There are no errors but no photos are displayed either. The browser
> > says
> > CdlS> "Waiting for localhost"
> >
> > I seem to remember this behaviour too.
> >
> > CdlS> What is the proper way to display photos in Aida?
> >
> > When I wanted to display images I used:
> > 'file:///GobiBild001.jpg'
> > where the images where in the same folder as the Smalltalk image. So
> > it should be 'file://photos/pap.jpg' in your case.
> >
> > CdlS> Ching de la Serna
> >
> >
> >
> > Cheers,
> >
> > Herbert                            mailto:herbertkoenig at gmx.net
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Aida mailing list
> > Aida at aidaweb.si
> > http://lists.aidaweb.si/mailman/listinfo/aida
> >
> >
> > End of Aida Digest, Vol 45, Issue 4
> > ***********************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.aidaweb.si/pipermail/aida/attachments/20110211/5cf89d4f/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Fri, 11 Feb 2011 15:41:31 +0100
> From: Janko Miv?ek <janko.mivsek at eranova.si>
> Subject: Re: [aida] displaying photos or images
> To: AIDA/Web general discussion list <aida at aidaweb.si>
> Message-ID: <4D554A9B.2070505 at eranova.si>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Ching,
>
> I think you provided an Url without '/' at the start (and '\' intead of
> '/'), so it is wrongly relative to Url of your current page. Add '/' to
> the start of Url, so that it will be relative to the home directory,
> which is where image was started:
>
>        e addImage: '/photos/pap.jpg'
>
> Also check if home directory is correct in your OS
>
>        AIDASite default homeDirectory
>                "should be '\.' on Wins, '/.' on Linux"
>
> Hope this helps
> Janko
>
> On 10. 02. 2011 17:54, Herbert K?nig wrote:
> > Hi Ching,
> >
> > CdlS> I would like to add photographs or images to my page and I have
> this:
> >
> > CdlS>             e addImage: 'photos\pap.jpg';
> >
> > not really sure but I believe, this defaults to a methodImage (a
> > method returning a ByteArray containing the contents of the image).
> >
> > For small resources WebMethodResources are a cool thing because they
> > are versioned with Monticello.
> >
> > See e.g. the comment in WebStyle>>importImage:from:
> >
> > CdlS> There are no errors but no photos are displayed either. The browser
> says
> > CdlS> "Waiting for localhost"
> >
> > I seem to remember this behaviour too.
> >
> > CdlS> What is the proper way to display photos in Aida?
> >
> > When I wanted to display images I used:
> > 'file:///GobiBild001.jpg'
> > where the images where in the same folder as the Smalltalk image. So
> > it should be 'file://photos/pap.jpg' in your case.
> >
> > CdlS> Ching de la Serna
> >
> >
> >
> > Cheers,
> >
> > Herbert                            mailto:herbertkoenig at gmx.net
> >
> > _______________________________________________
> > Aida mailing list
> > Aida at aidaweb.si
> > http://lists.aidaweb.si/mailman/listinfo/aida
> >
>
> --
> Janko Miv?ek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 12 Feb 2011 00:43:30 +0800
> From: Ching de la Serna <ching.dls at gmail.com>
> Subject: [aida] displaying photos
> To: aida at aidaweb.si
> Message-ID:
>        <AANLkTi=r1FEjG11eLUb-0bW+w5Px9iEPdB+_De6gaBVG at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I was able to display photos by this method:
> e addImage: 'http://somedomain.com/somephoto.jpg'
>
> Is there a way to display an image from within my directory and not from a
> different site? I tried this, as suggested by Herbert, e addImage:
> 'file://photo/pap.jpg' but no image was displayed. Perhaps it should be
> written another way?
>
> Thanks in advance.
>
> Ching de la Serna
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.aidaweb.si/pipermail/aida/attachments/20110212/e97d09ee/attachment-0001.htm
>
> ------------------------------
>
> Message: 4
> Date: Fri, 11 Feb 2011 17:50:34 +0100
> From: Nicholas Moore <nicholas.moore at tsr-i.com>
> Subject: Re: [aida] displaying photos
> To: "AIDA/Web general discussion list" <aida at aidaweb.si>
> Message-ID: <201102111750.38396.nicholas.moore at tsr-i.com>
> Content-Type: Text/Plain;  charset="iso-8859-15"
>
> I do it like this for example:
>
>        (e newCell)
>                align: #left;
>                addImage: 'images/default.jpg' size: 180 @ 135.
>
> Where 'images' is a directory at the default (./) level.
>
> Nicholas
>
>
> On Friday 11 Feb 2011 17:43:30 Ching de la Serna wrote:
> > Hi,
> >
> > I was able to display photos by this method:
> > e addImage: 'http://somedomain.com/somephoto.jpg'
> >
> > Is there a way to display an image from within my directory and not from
> a
> > different site? I tried this, as suggested by Herbert, e addImage:
> > 'file://photo/pap.jpg' but no image was displayed. Perhaps it should be
> > written another way?
> >
> > Thanks in advance.
> >
> > Ching de la Serna
> >
>
> --
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 11 Feb 2011 17:51:24 +0100
> From: Janko Miv?ek <janko.mivsek at eranova.si>
> Subject: Re: [aida] displaying photos
> To: AIDA/Web general discussion list <aida at aidaweb.si>
> Message-ID: <4D55690C.5010001 at eranova.si>
> Content-Type: text/plain; charset=UTF-8
>
> Ching, did you try as I proposed in my previous answer:
>
>        e addImage: '/photos/pap.jpg'
>
> Best regards
> Janko
>
> On 11. 02. 2011 17:43, Ching de la Serna wrote:
> > Hi,
> >
> > I was able to display photos by this method:
> > e addImage: 'http://somedomain.com/somephoto.jpg'
> >
> > Is there a way to display an image from within my directory and not from
> > a different site? I tried this, as suggested by Herbert, e addImage:
> > 'file://photo/pap.jpg' but no image was displayed. Perhaps it should be
> > written another way?
> >
> > Thanks in advance.
> >
> > Ching de la Serna
> >
> >
> >
> > _______________________________________________
> > Aida mailing list
> > Aida at aidaweb.si
> > http://lists.aidaweb.si/mailman/listinfo/aida
>
> --
> Janko Miv?ek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
>
>
> ------------------------------
>
> Message: 6
> Date: Sat, 12 Feb 2011 01:52:35 +0800
> From: Ching de la Serna <ching.dls at gmail.com>
> Subject: [aida] displaying photos
> To: aida at aidaweb.si
> Message-ID:
>        <AANLkTinkoG1CS7Nv1kaXY4R086Zk30vjj5oBOt0Vgn61 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Janko,
>
> As you suggested, I tried several variations like:
> e addImage: '/photos/pap.jpg' and
> e addImage: '\photos\pap.jpg' and
> e addImage: 'photos\pap.jpg'
>
> I also moved pap.jpg to the home directory so I can do this: e addImage:
> 'pap.jpg'
> again, I tried with '\' and '/'
> and nothing seems to be working.
>
> This is what I have on:
> defaultHomeDirectory
>    "where the image started, but depending on Unix or Win style"
>    ^(SpEnvironment onWindows ifTrue: ['.\'] ifFalse: ['./'])
>
> Thanks,
>
> Ching
>
> On Fri, Feb 11, 2011 at 10:28 PM, Ching de la Serna <ching.dls at gmail.com
> >wrote:
>
> > Hi Herbert,
> >
> > Thanks for responding. I did as you suggested and the "Waiting for
> > localhost...' notification disappeared but no images were displayed.
> > I tried different variations like putting the file on the same image as
> > Squeak and using 'file:///pap.jpg' and nothing worked.
> >
> > Ching
> >
> >
> > On Fri, Feb 11, 2011 at 7:00 PM, <aida-request at aidaweb.si> wrote:
> >
> >> Send Aida mailing list submissions to
> >>        aida at aidaweb.si
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>        http://lists.aidaweb.si/mailman/listinfo/aida
> >> or, via email, send a message with subject or body 'help' to
> >>        aida-request at aidaweb.si
> >>
> >> You can reach the person managing the list at
> >>        aida-owner at aidaweb.si
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of Aida digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >>   1. displaying photos or images (Ching de la Serna)
> >>   2. Re: displaying photos or images (Herbert K?nig)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Fri, 11 Feb 2011 00:12:39 +0800
> >> From: Ching de la Serna <ching.dls at gmail.com>
> >> Subject: [aida] displaying photos or images
> >> To: aida at aidaweb.si
> >> Message-ID:
> >>        <AANLkTikC8HSA50aWO3Y1UD_VU-cytsUGAMHGTi7rfF9P at mail.gmail.com>
> >> Content-Type: text/plain; charset="iso-8859-1"
> >>
> >> Hi,
> >>
> >> I would like to add photographs or images to my page and I have this:
> >>
> >>            e addImage: 'photos\pap.jpg';
> >>
> >> There are no errors but no photos are displayed either. The browser says
> >> "Waiting for localhost"
> >> What is the proper way to display photos in Aida?
> >>
> >> Ching de la Serna
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >>
> http://lists.aidaweb.si/pipermail/aida/attachments/20110211/ac53a779/attachment.html
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Thu, 10 Feb 2011 17:54:45 +0100
> >> From: Herbert K?nig <herbertkoenig at gmx.net>
> >> Subject: Re: [aida] displaying photos or images
> >> To: AIDA/Web general discussion list <aida at aidaweb.si>
> >> Message-ID: <1308818279.20110210175445 at gmx.net>
> >> Content-Type: text/plain; charset=ISO-8859-1
> >>
> >> Hi Ching,
> >>
> >> CdlS> I would like to add photographs or images to my page and I have
> >> this:
> >>
> >> CdlS>             e addImage: 'photos\pap.jpg';
> >>
> >> not really sure but I believe, this defaults to a methodImage (a
> >> method returning a ByteArray containing the contents of the image).
> >>
> >> For small resources WebMethodResources are a cool thing because they
> >> are versioned with Monticello.
> >>
> >> See e.g. the comment in WebStyle>>importImage:from:
> >>
> >> CdlS> There are no errors but no photos are displayed either. The
> browser
> >> says
> >> CdlS> "Waiting for localhost"
> >>
> >> I seem to remember this behaviour too.
> >>
> >> CdlS> What is the proper way to display photos in Aida?
> >>
> >> When I wanted to display images I used:
> >> 'file:///GobiBild001.jpg'
> >> where the images where in the same folder as the Smalltalk image. So
> >> it should be 'file://photos/pap.jpg' in your case.
> >>
> >> CdlS> Ching de la Serna
> >>
> >>
> >>
> >> Cheers,
> >>
> >> Herbert                            mailto:herbertkoenig at gmx.net
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> Aida mailing list
> >> Aida at aidaweb.si
> >> http://lists.aidaweb.si/mailman/listinfo/aida
> >>
> >>
> >> End of Aida Digest, Vol 45, Issue 4
> >> ***********************************
> >>
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.aidaweb.si/pipermail/aida/attachments/20110212/f54d8339/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> Aida mailing list
> Aida at aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida
>
>
> End of Aida Digest, Vol 45, Issue 5
> ***********************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20110212/882846ea/attachment-0001.htm 


More information about the Aida mailing list