Re: Very basic javascript execution

Karsten Kusche <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
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 ([email protected]<mailto:[email protected]>) 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
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.