[Seaside] Very basic javascript execution

Karsten Kusche karsten at heeg.de
Fri Dec 7 13:37:37 UTC 2018


Hi Maarten,

you’d do something like:

html anchor onClick:(html javascript return: (html javascript confirm:’sure?’));
callback:[self halt];
with:’click me’.

I didn’t try but it should present the dialog and it should only execute the callback if confirmed.

It should produce code like in this answer: https://stackoverflow.com/questions/10462839/how-to-display-a-confirmation-dialog-when-clicking-an-a-link

Kind Regards
Karsten



Am 7. Dezember 2018 um 14:19:16, Maarten Mostert (maarten.mostert at wanadoo.fr<mailto:maarten.mostert at wanadoo.fr>) schrieb:

Hello,

I have a very simple question here:

I would like to do something like:

answerofConfirm:= (html anchor)
class: 'button-xsmall  pure-button button-success';
callback: [
html script:[html confirm:('Hello got It ? ’)]
];
with:
[(html tag: 'i')
class: 'fas fa-lock';
style: 'font-size: 14px;’].


I mean of course that want the basic javascript confirm response.

Thanks


Maarten Mostert
 _______________________________________________
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/20181207/d3beaee2/attachment.html>


More information about the seaside mailing list