[Seaside] Modal dialogs and Updating/closing

Gastón Dall' Oglio gaston.dalloglio at gmail.com
Thu Mar 12 13:24:59 UTC 2015


Hi Torsten.

I do guess that it isn't a good practice, but see here for an simple
example [1].

Here I have an abstract class where I render the page with a hidden dialog
(PIComponent>>renderModalOn:) containing ids to show messages and errors.
Later when I want to show an error I use PIComponent>>showError:on:
You can see this in the concrete class  PIExploreComponent.

I can share the image within that I use those classes if you want. This was
an experiment for a project that right now is dead.
Best.

[1] http://forum.world.st/Bootstrap-s-Modal-question-td4713488.html



2015-03-12 7:22 GMT-03:00 Torsten Bergmann <astares at gmx.de>:

> I have a modal dialog in Seaside like the Bootstrap one demonstrated
> here:
>
> http://pharo.pharocloud.com/bootstrap/browser/Modal%20example
>
> When I click on "Save Changes" I would like the server to verify
> data (for instance check credentials for a login) and possibly
> display a message in the dialog when the input was wrong.
>
> In such a case I only want to refresh the contents of the dialog
> and not a full page refresh, because with a full page refresh the
> dialog would not be open again but also I want the updated info
> to look smooth without flickering of a full page reload.
>
> Also when the data is fine after checking on the server the
> dialog should close.
>
> What options do I have/whats the best way to implement this?
> Any best practices or simple examples ideally with Bootstrap?
>
> Thx
> T.
> _______________________________________________
> 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/20150312/f2da3463/attachment.htm


More information about the seaside mailing list