Re: Clickable image (jpg file)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Clickable image (jpg file)

Philippe Marschall
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 <[hidden email]>:

> 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
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Re: Clickable image (jpg file)

Bany, Michel
 
> As a learning exercise for me, how is one supposed to know
> that  #with has to be the last message?


This is explained very nicely there :

http://lists.squeakfoundation.org/pipermail/seaside/2005-June/005260.htm
l

HTH,
Michel.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Re: Clickable image (jpg file)

Boris Popov, DeepCove Labs (SNN)
Thus the motivation for the FAQ :)

I'd actually started putting one together, but with vacation coming up you
may be in a better position to get the ball rolling quickly. Can't be that
hard to make a list of categorized questions with answers that toggle on the
click of the question link... or something.

I'll be back on September 4th and will gladly commit some time to the
project to push it forward if you're not all done by then.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Bany,
Michel
Sent: Friday, August 18, 2006 9:35 AM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: RE: [Seaside] Re: Clickable image (jpg file)

 
> As a learning exercise for me, how is one supposed to know
> that  #with has to be the last message?


This is explained very nicely there :

http://lists.squeakfoundation.org/pipermail/seaside/2005-June/005260.htm
l

HTH,
Michel.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

smime.p7s (4K) Download Attachment