[Seaside] inter component communication using AJAX

Robert Sirois watchlala at hotmail.com
Tue Sep 27 23:04:09 UTC 2011


Have B tell A something then and let A deal with it how it wants and return the ajax call with some javascript update to 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.

RS

> 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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110927/7d87ac78/attachment.htm


More information about the seaside mailing list