[Seaside] jQuery Dummy
Robert Sirois
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.
html div
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.
Also, the commas concatenate javascript code (string), which results from the jQuery stuff; therefore, you can combine them with string functions. A function similar to the one above might return something like this...
$(this).html("blah");
... which will be executed when an event takes place.
RS
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)
(I think)
Julian
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.
>
> Thanks,
> Joel
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/171222985/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100104/f7ddedf5/attachment.htm
More information about the seaside
mailing list