[Seaside] jQuery Dummy
watchlala at hotmail.com
Mon Jan 4 18:00:34 UTC 2010
The best way I've found for things like this is taking advantage of components. From an object-oriented standpoint, you are replacing an element on the page with a new one that has its own functionality.
style: 'width: 100px; height: 100px; background-color: blue';
onClick: (html jQuery this html: WACounter new).
Try this out, and you'll understand what I mean.
... which will be executed when an event takes place.
From: joel.turnbull at ardishealth.com
Date: Mon, 4 Jan 2010 12:49:57 -0500
Subject: Re: [Seaside] jQuery Dummy
To: seaside at lists.squeakfoundation.org
Hmm, thanks Julian, doesn't quite seem to work...nice to know about the comma though.
I'm just going to use submit buttons for now until I have more time.
On Mon, Jan 4, 2010 at 11:04 AM, Julian Fitzell <jfitzell at gmail.com> wrote:
onClick: (canvas jQuery ajax callback: [ self goToNextStep ]), (canvas
jQuery ajax serializeForm)
On Mon, Jan 4, 2010 at 7:03 AM, Joel Turnbull
<joel.turnbull at ardishealth.com> wrote:
> This should be an easy one. I'm using jQuery to turn a div into a submit
> button. onClick I need the div to evaluate a callback and then submit the
> form. I can do one or the other but I'm wasting a lot of time trying to
> figure out how do both. Been playing with script:, but I don't understand
> what it is and can't get it to work.
> canvas div
> id: divID;
> onClick: ( canvas jQuery ajax callback: [ self goToNextStep ] );
> with: [ canvas text: 'Next' ]
> BTW, I'd love suggestions on a good resource or path for understanding
> jQuery in seaside.
> seaside mailing list
> seaside at lists.squeakfoundation.org
seaside mailing list
seaside at lists.squeakfoundation.org
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside