[Seaside] Re: I would like to attach an onClick event according to
watchlala at hotmail.com
Fri Feb 4 04:15:43 UTC 2011
You'll just have to learn the packages. #onClick: is the method for binding click events.
In the example, they bind an alert function, so in Seaside it might look like this:
((html jQuery: #external_links) has: 'a') onClick: 'alert('Eeek!')'.
Pop this onto a component... make sure you have the JQueryDeployment added to your libraries.
html div id: #external_link; style: 'height: 100px; width: 100px; background-color: red'; with: [ html anchor: 'blah' ].
html button bePush; onClick: (((html jQuery: #external_link) has: 'a') onClick: 'alert("Eeek!")'); with: 'Add click event'.
> To: seaside at lists.squeakfoundation.org
> From: intrader.intrader at gmail.com
> Date: Fri, 4 Feb 2011 03:55:28 +0000
> Subject: [Seaside] Re: I would like to attach an onClick event according to
> Robert, thanks - what I am trying to do is translate the following article's
> examples to Seaside.
> And yes, this is contrived and I could generate the onClick events while
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside