[Seaside] WAAnchorTag>>submitFormNamed:

Avi Bryant avi.bryant at gmail.com
Tue Oct 11 03:36:43 UTC 2005


On Oct 10, 2005, at 10:28 PM, Mart-Mari Breedt wrote:

> Hi,
>
> Maybe I was a bit unclear in the first mail. What I basically want to
> achieve is for an anchor tag to exibit the same behavior as a submit
> button. I.e when I click on the anchor tag it should also submit the
> form contents and then do something else (normally defined in the  
> action
> block). I thought that WAAnchorTag>>submitFormNamed: should do the
> trick, but I do not know exactly how to use it with
> #anchorWithAction:text: and it seems that nobody else know what I am
> talking about. Any other ideas would however be appreciated.

Hi Mart-Mari,

Which version of Seaside are you using?  This has been changing a bit  
on the a2 branch.  And it will change more, because it's currently a  
little bit too hard to use.

Anyway, as of the most recent version you do this:

html anchor
     callback: ["do something else"];
     submitFormNamed: 'someForm';
     ignoreURL;
     text: 'Not a submit button'

Cheers,
Avi


More information about the Seaside mailing list