The overlay facilities in jQuery Tools will provide you with the mechanisms to handle the overlays, but the plone.app.jquerytools overlay helper will only be of indirect assistance.
If you want to make maximum use of our overlay helper, one approach would be: 1) create a hidden link on the @@configure page to your @@confirm view. Prepare it with prepOverlay as if you planned to use it directly (i.e., from the link). 2) add a submit handler to the form on @@configure that will serialize the form data, do an ajax post to @@confirm, and use the results to load the initially hidden overlay (all functions provided by jQuery). Call the overlay handler's pb.prep_ajax_form method to set up ajax form handling in the overlay. Show the overlay. Let the overlay helper handle the rest. And ... if folks think that an ajax post to an overlay from a form that isn't already in an overlay would be a common use case, it wouldn't be hard to add it to the overlay helper functionality in p.a.jquerytools. On Fri, May 28, 2010 at 6:53 AM, Martin Aspeli <[email protected]> wrote: > Hi, > > Is this possible with p.a.jquerytools? > > - A template @@configure has a form that submits to a view @@confirm, > with a Buy button. > - The @@confirm view has a form with hidden fields carrying the data > from @@configure, and a Confirm button > - When clicking Confirm, the user is taken to an @@receipt view > > We'd like to show the confirmation in an overlay, so that when the > user slicks the Buy button, the @@confirm view comes up. When clicking > Confirm there, the whole page is refreshed showing the @@receipt view. > > There are no file fields or other craziness, which hopefully helps. > However, the examples and docs I can find all assume the overlay is > invoked from a link rather than a form submission, and that the result > of submitting a form inside the overlay stay inside the overlay or > cause the overlay to close. > > Cheers, > Martin > _______________________________________________ > Product-Developers mailing list > [email protected] > http://lists.plone.org/mailman/listinfo/product-developers >
_______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
