[Seaside] inter component communication using AJAX
johan at inceptive.be
Wed Sep 28 08:13:59 UTC 2011
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: http://johanbrichau.blogspot.com/2011/09/ajaxified-seaside-components.html
In addition, take a look at jQuery (for client-side DOM navigation) and Announcements (for server-side component coordination)
Maybe it helps, maybe not… I'm glad to answer any questions you might have if this describes what you are looking for.
On 28 Sep 2011, at 03:55, squeakman wrote:
> On 27/09/2011 7:04 PM, Robert Sirois wrote:
>> Have B tell A something then and let A deal with it how it wants and
> 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".
> I see methods in PTElement for up, down, next but nothing that would allow me to search for some arbitrary element in the DOM.
>> The children scheme doesn't matter as much with ajax calls unless you're
>> keeping state in case the user reloads the page or something.
>> > To: seaside at lists.squeakfoundation.org
>> > From: squeakman at gmail.com
>> > Date: Tue, 27 Sep 2011 18:50:19 -0400
>> > Subject: [Seaside] inter component communication using AJAX
>> > Hello All,
>> > I have a component "A" that contains two children components "B" and "C".
>> > The code in B that looks like:
>> > html select .....
>> > onClick: (html scriptaculous updater id: 'C';
>> > callback: [:r | (r element id: 'C') hide])
>> > clicking on an item in the select list in B causes C to be hidden. This
>> > works but it ties B to C.
>> > Is there a way to do this without having B know about C? I would like
>> > to have the parent A do the hiding of C but I cannot figure out how to
>> > do this.
>> > Sorry if this is too cryptic, including all the code was just too messy.
>> > Thanks,
>> > Frank
>> > _______________________________________________
>> > 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
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside