[Seaside] Re: Clickable image (jpg file)
Frank Sukhu
fsukhu at gmail.com
Fri Aug 18 16:06:06 UTC 2006
Thanks, that worked perfectly.
As a learning exercise for me, how is one supposed to know that #with has
to be the last message?
... Frank
"Philippe Marschall" <philippe.marschall at gmail.com> wrote in message
news:66666f210608180851x7fd4c614m7c8e997f90cb1cad at mail.gmail.com...
> Hi
>
> #with: has to be the last message to a tag. So the code should look like
this:
>
> renderControlsOn: html
> html anchor
> callback: [ self break ];
> with: [
> html image
> fileName: 'backButton.jpg';
> mimeType: 'image/jpg'].
>
>
> Philipe
>
>
> 2006/8/18, Frank Sukhu <fsukhu at gmail.com>:
> > Greetings All,
> >
> > I am trying to display an image (a jpg image) that is clickable - it is
> > supposed to be like a "Stop" button on a tape recorder, e.g., one of the
> > buttons like Play, Forward, Stop.
> >
> > Here is the relevant code snippet:
> >
> > ---- start of code -----
> >
> > renderControlsOn: html
> > html anchor with: [html image fileName: 'backButton.jpg'; mimeType:
> > 'image/jpg'];
> > callback: [self break].
> >
> > --- end of code ----
> >
> > When I execute this code, the 'backButton' image is displayed but
nothing
> > happens when I click on the image. What am I doing wrong?
> >
> > As always, I appreciate any help you can provide.
> >
> > Frank
> >
> >
> >
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
More information about the Seaside
mailing list