<div>Hi Johan.<br></div><div><br></div><div>I don't sure if are a bug in ss3, but in the page <a href="http://ss3.gemstone.com/ss/SeasideAjaxifiedComponents.html">http://ss3.gemstone.com/ss/SeasideAjaxifiedComponents.html</a> the snippet code is wrong?<br>
I have to change #repository: to #url: for correctly load.</div><div><br></div><div>from </div><div><br></div><div>Gofer new<br> repository: '<a href="http://ss3.gemstone.com/ss/SeasideAjaxifiedComponents">http://ss3.gemstone.com/ss/SeasideAjaxifiedComponents</a>';<br>
package: 'AjaxifiedComponents-Core';<br> package: 'AjaxifiedComponents-Example';<br> load</div><div><br></div><div>to</div><div><br></div><div>Gofer new<br>url: '<a href="http://ss3.gemstone.com/ss/SeasideAjaxifiedComponents">http://ss3.gemstone.com/ss/SeasideAjaxifiedComponents</a>';<br>
package: 'AjaxifiedComponents-Core';<br> package: 'AjaxifiedComponents-Example';<br> load</div><div><br></div><div><br></div><div><br></div><div class="gmail_quote">2011/9/28 Johan Brichau <span dir="ltr"><<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm not sure what exactly the problem is you are trying to deal with, but it vaguely seems you are trying to accomplish something I have described here: <a href="http://johanbrichau.blogspot.com/2011/09/ajaxified-seaside-components.html" target="_blank">http://johanbrichau.blogspot.com/2011/09/ajaxified-seaside-components.html</a><br>
<br>
In addition, take a look at jQuery (for client-side DOM navigation) and Announcements (for server-side component coordination)<br>
<br>
Maybe it helps, maybe not… I'm glad to answer any questions you might have if this describes what you are looking for.<br>
<br>
Cheers<br>
<font color="#888888">Johan<br>
</font><div><div class="h5"><br>
<br>
On 28 Sep 2011, at 03:55, squeakman wrote:<br>
<br>
> On 27/09/2011 7:04 PM, Robert Sirois wrote:<br>
>> Have B tell A something then and let A deal with it how it wants and<br>
>> return the ajax call with some javascript update to the DOM.<br>
>><br>
> This is what I am trying to do but cannot figure it out. I have "B" pass the renderer "r" to A - but I cannot figure out how to use that rendered to do a search for element "C".<br>
><br>
> I see methods in PTElement for up, down, next but nothing that would allow me to search for some arbitrary element in the DOM.<br>
><br>
> My knowledge of Javascript is not great so I am struggling.<br>
><br>
><br>
><br>
>> The children scheme doesn't matter as much with ajax calls unless you're<br>
>> keeping state in case the user reloads the page or something.<br>
>><br>
>> RS<br>
>><br>
>> > To: <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> > From: <a href="mailto:squeakman@gmail.com">squeakman@gmail.com</a><br>
>> > Date: Tue, 27 Sep 2011 18:50:19 -0400<br>
>> > Subject: [Seaside] inter component communication using AJAX<br>
>> ><br>
>> > Hello All,<br>
>> ><br>
>> > I have a component "A" that contains two children components "B" and "C".<br>
>> ><br>
>> > The code in B that looks like:<br>
>> > html select .....<br>
>> > onClick: (html scriptaculous updater id: 'C';<br>
>> > callback: [:r | (r element id: 'C') hide])<br>
>> ><br>
>> > clicking on an item in the select list in B causes C to be hidden. This<br>
>> > works but it ties B to C.<br>
>> ><br>
>> > Is there a way to do this without having B know about C? I would like<br>
>> > to have the parent A do the hiding of C but I cannot figure out how to<br>
>> > do this.<br>
>> ><br>
>> > Sorry if this is too cryptic, including all the code was just too messy.<br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> > Frank<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" target="_blank">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" target="_blank">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" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</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" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>