Hello all.<br><div><br></div><div>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.</div>
<div>For example, for conditional statements exists only JSCondition that to evaluate only for true case, neither &quot;If...else&quot; nor &quot;If...else if...else&quot; (JSIfThenElse wrap the conditional operator not conditional statement).</div>
<div><br></div><div>Recently I made an Seaside app and often I had to make js sentences using &quot;JSStream on:&quot;, no good :(. I&#39;ve also seen other programmers code which did the same, in Reef IIRC. Maybe to use amber for that to be better...</div>
<div><br></div><div>Below some inline comments:<br></div><div><br></div><div class="gmail_quote">2013/4/10 <a href="mailto:jtuchel@objektfabrik.de">jtuchel@objektfabrik.de</a> <span dir="ltr">&lt;<a href="mailto:jtuchel@objektfabrik.de" target="_blank">jtuchel@objektfabrik.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> There&#39;s always something new to learn in Seaside and its Javascript integration.</blockquote><div><br></div><div>
Yes it&#39;s really true!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> 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.<br>

<br>
But maybe the fix isn&#39;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.<br>
I don&#39;t even know if<br>
<br>
(a==b) ? {callA(); callB()} : {callC(); callD()};<br>
<br></blockquote><div><br></div><div>In conditional operator, you have to use &quot;,&quot; instead to &quot;;&quot; to separate sentences within brackets. Seaside to use an &quot;;&quot; to render js when concatenate sentences, so you have a problem here :(</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
is valid Javascript... ;-)) *headscratch*<br></blockquote><div><br></div><div>See <a href="http://stackoverflow.com/questions/869832/conditional-operators-in-javascript">http://stackoverflow.com/questions/869832/conditional-operators-in-javascript</a> </div>
<div><br></div></div><div>Regards.<br></div><div><br></div>