[Seaside] Ajax + callbacks
bart.veenstra at gmail.com
Fri Sep 24 12:39:40 UTC 2010
You could render the AComponent in the containing div. This div is
hidden automatically by jQuery and all callbacks are correctly
registered when rendering the page.
| id |
id: (id := html nextId);
((html jQuery new dialog)
title: anObject objectName);
. with: [html render: (AComponent new withParameter: anObject) ].
have you tried this?
2010/9/24 AxiNat <tibabenfortlapalanca at gmail.com>:
> 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);
> ((html jQuery new dialog)
> html: (AComponent new withParameter: anObject);
> title: anObject objectName).
> 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
More information about the seaside