Ah thankyou.<br><br>
<div><span class="gmail_quote">On 6/12/07, <b class="gmail_sendername">Magnus Schwarz</b> <<a href="mailto:magnus@heeg.de">magnus@heeg.de</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Dirk,<br><br>it is an extra package (in the public repository)...<br><br>Magnus<br><br>dirk newbold schrieb:
<br>> Is Scriptaculous in the SeasideForWebToolKit parcel or do I have to<br>> load another parcel - it's just that the 'updater' method below is not<br>> understood and I can't seem to find it?<br>
><br>> Dirk<br>><br>> On 6/12/07, dirk newbold <<a href="mailto:dirkdirk@gmail.com">dirkdirk@gmail.com</a>> wrote:<br>>> Thanks very much - I'll give it a go.<br>>><br>>> Cheers,<br>
>><br>>> Dirk<br>>><br>>> On 6/12/07, Cédrick Béler <<a href="mailto:cbeler@enit.fr">cbeler@enit.fr</a>> wrote:<br>>> > dirk newbold a écrit :<br>>> > > All,<br>>> > >
<br>>> > ><br>>> <a href="http://ajax.asp.net/ajaxtoolkit/CascadingDropDown/CascadingDropDown.aspx">http://ajax.asp.net/ajaxtoolkit/CascadingDropDown/CascadingDropDown.aspx</a><br>>> > ><br>>> > > I found the exact example I am trying to achieve as per this ajax
<br>>> link<br>>> > > above.<br>>> > ><br>>> > > I'm guessing Seaside has same deal but can't see to make anything<br>>> work<br>>> > > - I'm new at all this.
<br>>> > ><br>>> > > Thanks,<br>>> > ><br>>> > > Dirk<br>>> > I think you have to use the updater and onChange() event to realize<br>>> > that... in 3 different select...
<br>>> > have a look at SUClassBrowser renderCategoriesOn: html... or see<br>>> > implementors of #updater<br>>> > Also, there was a similar stuuf with SeasideAsync but if you use only<br>>> > scriptaculous, this should be somethink like (not tested):
<br>>> ><br>>> > renderContentOn: html<br>>> > html div<br>>> > id: 'box1';<br>>> > with: [self renderBox1On: html].<br>>> > html div<br>>> > id: 'box2';
<br>>> > with: [self renderBox2On: html].<br>>> > html div<br>>> > id: 'box1';<br>>> > with: [self renderBox3On: html].<br>>> ><br>>> ><br>>> > renderBox1On: html
<br>>> > html select<br>>> > id: 'box1';<br>>> > selected: self val1;<br>>> > list: self list1;<br>>> > callback: [:valBox1 | self val1 := valBox1]
<br>>> > onChange: (hmtl updater<br>>> > id: 'box2'; "on change, update the<br>>> box<br>>> > named box2"<br>>> > triggerFormElement: 'box1' "also triger
<br>>> > the action associated to that form element.... self val1 := valBox1<br>>> > ort whaterver..."<br>>> > callback: [:render | self renderBox2On:<br>>> > render]. " the box is redrawn with the rendering fonction
<br>>> renderBox3"<br>>> > onSuccess: (html updater "don't<br>>> forget to<br>>> > upadate the last box..."<br>>> > id: 'box3';
<br>>> > callback: [:render | self<br>>> > renderBox3On: render])<br>>> ><br>>> > renderBox2On: html<br>>> > html select<br>>> > id: 'box2';
<br>>> > selected: self val2;<br>>> > list: self list2;<br>>> > callback: [:valBox2 | self val2 := valBox2]<br>>> > onChange: (hmtl updater<br>>> > id: 'box2';
<br>>> > triggerFormElement: 'box2';<br>>> > callback: [:render | self renderBox3On:<br>>> render]<br>>> ><br>>> > renderBox3On: html
<br>>> > html select<br>>> > id: 'box3';<br>>> > selected: self val3;<br>>> > list: self list3;<br>>> > callback: [:valBox3 | self val3 := valBox3]
<br>>> > onChange: (hmtl request<br>>> > triggerFormElement: 'box2'] "only trigger<br>>> > the callback associated to id box3... no rendering needed..."
<br>>> ><br>>> ><br>>> > hth<br>>> ><br>>> > Cédrick<br>>> > _______________________________________________<br>>> > Seaside mailing list<br>>> > <a href="mailto:Seaside@lists.squeakfoundation.org">
Seaside@lists.squeakfoundation.org</a><br>>> > <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>>> ><br>
>><br>> _______________________________________________<br>> Seaside mailing list<br>> <a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>><br>><br>><br><br>--<br>Magnus Schwarz * Senior Smalltalk Architect * mailto:<a href="mailto:magnus.schwarz@heeg.de">magnus.schwarz@heeg.de
</a><br>phone:+49 231 97599-0 * fax:+49 231 97599-20<br>Georg Heeg eK Dortmund<br>Handelsregister: Amtsgericht Dortmund A 12812<br>---------------------------------------------------<br>PGP PUBLIC KEY BLOCK via <a href="http://www.heeg.de/~magnus">
http://www.heeg.de/~magnus</a><br><br>_______________________________________________<br>Seaside mailing list<br><a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></div><br>