[Product-Developers] plone.app.jquerytools and overlays for forms not using AJAX

Jan-Carel Brand jc at opkode.com
Mon Apr 12 08:35:47 UTC 2010


Op Ma, 2010-04-12 om 09:29 +0800 skryf Martin Aspeli:
> Hi,
> 
> We want to use a p.a.jquerytools-like overlay for a "confirm" screen
> on a complex form. The user configures a product to buy on a bespoke
> form, and then clicks "Buy". At this point, we need to overlay a
> confirm dialogue. This needs to show a few bits of dynamic information
> (which can be calculated in JavaScript) and give a few options (e.g.
> "would you also like to buy" type recommendations), before clicking OK
> or Cancel. Cancel would close the overlay. OK would submit the
> underlying form where the user has configured the product they are
> purchasing.
> 
> The crucial thing here is that the form is not a standalone view. It's
> client-side only.
> 
> Are there any examples/docs for doing this kind of thing?


Hi Martin,

Take a look at collective.alerts.

It provides 'JQuery Alert Dialogs', one of them being a prompt which the
user must confirm or cancel.

If the user presses cancel, the form is not submitted.

I used it in collective.idashboard to provide prompts like: "Are you
sure you want to delete this portlet?"

On the pypi page is a link to Cory LaViska's docs for the original
JQuery plugin. 

Cheers
JC


-- 
http://opkode.net





More information about the Product-Developers mailing list