[Seaside] jQuery variable check for onBlur

Gastón Dall' Oglio gaston.dalloglio at gmail.com
Wed Apr 10 15:11:37 UTC 2013

Hello all.

I guess that Seaside developers only wrap js construction that was needed
to give support to another pieces of Seaside (like ajax, jQuery...), and
they are not thinking in to give really support to construct complex js
code in with Smalltalk objects. For that reason those js wrappers are
incomplete and no correctly correlated to js language.
For example, for conditional statements exists only JSCondition that to
evaluate only for true case, neither "If...else" nor "If...else if...else"
(JSIfThenElse wrap the conditional operator not conditional statement).

Recently I made an Seaside app and often I had to make js sentences using
"JSStream on:", no good :(. I've also seen other programmers code which did
the same, in Reef IIRC. Maybe to use amber for that to be better...

Below some inline comments:

2013/4/10 jtuchel at objektfabrik.de <jtuchel at objektfabrik.de>

>  There's always something new to learn in Seaside and its Javascript
> integration.

Yes it's really true!

> Please remember my fix if you need to have more than one javascript
> statement executed (concatednated with a , on the Smalltalk side) in either
> the true or false branch.
> But maybe the fix isn't needed if you put those into a JavaScript block. I
> never tried and never had the idea before until right now as I type this.
> I don't even know if
> (a==b) ? {callA(); callB()} : {callC(); callD()};
In conditional operator, you have to use "," instead to ";" to separate
sentences within brackets. Seaside to use an ";" to render js when
concatenate sentences, so you have a problem here :(

> is valid Javascript... ;-)) *headscratch*


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130410/c912ae63/attachment.htm

More information about the seaside mailing list