[Seaside] Image for form submission

Boris Popov boris at deepcovelabs.com
Fri Jun 30 14:43:28 UTC 2006


I can only attest to the new render canvas protocol, which you can use by
implementing this on your component,

rendererClass
 ^RenderCanvas

Once you do that, here's what you can do to create an image button,

(html imageButton)
  url: (self pictures addToPath: 'login');
  callback: [self login];
  text: 'Login'

Hope this helps,

-Boris

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

boris at deepcovelabs.com

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: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Jim Menard
Sent: Friday, June 30, 2006 7:23 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Image for form submission

I'd like to use an image to submit a form---reall, to call the #login
method on self. The image ilives at a fixed URL. The HTML I'm trying
to mimic is

<input id="btnLogin" type="image" src="http://.../foo.gif"
class="btnImage" value="Log In" />

If I wanted to use a text submit button, I would use
    html submitButtonOn: #login of: self.

I don't think that
    html inputWithType: 'image' named: ...
will work for me because then it won't call the #login method, will it?

I've checked my Seaside mailing list archves and Googled, and haven't
been able to find an answer one way or another.

Is it possible, or not? If so, can someone point me to documentation
or post a code snippet? Thank you.

Jim
-- 
Jim Menard, jimm at io.com, jim.menard at gmail.com
http://www.io.com/~jimm
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3370 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060630/719fc7b1/smime-0001.bin


More information about the Seaside mailing list