[Seaside] Ajax callbacks

Robert Sirois watchlala at hotmail.com
Fri Sep 24 14:01:00 UTC 2010

Unless you render everything in that div (the dialog) within the #with: or render another component in there, sometimes it's easier to separate out everything into their own components.


From: tibabenfortlapalanca at gmail.com
Date: Fri, 24 Sep 2010 13:15:04 +0200
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Ajax + callbacks

Hi list,
I've got a problem when rendering a component on an AJAX dialog, I have a table where there is an anchor in each row containing the following (among other stuff):

	| id |	(html div)		id: (id := html nextId);

		script:				((html jQuery new dialog)						html: (AComponent new withParameter: anObject);

						title: anObject objectName).	html

		tableData: [ 			(html anchor)				onClick: (html jQuery id: id) dialog open;

				with: 'Open my component for anObject in a dialog box' ]
Now, this works perfectly, but AComponent should also be able to call other simple components and handle their callbacks. Not only this, but it contains a form and it should be able to handle its own callbacks without disappearing. Adding these small subcomponents to AComponent's children doesn't help, could someone please point out the way to proceed or give me some example/documentation?

Thanks a lot!
Bernat Romagosa.

seaside mailing list
seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100924/b1e44f50/attachment.htm

More information about the seaside mailing list