answer "bla bla" in LC serverscript
Klaus major-k
klaus at major-k.de
Fri Feb 28 10:49:51 EST 2025
Hi all,
> Am 28.02.2025 um 12:40 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi friends,
>
> according to the dictionary - answer "bla bla" - does not work
> in a .LC serverscript. OK, the dialog stacks are not present. :-)
>
> How can I show a system dialog to the user in that case?
> I'm afraid I'm not too familiar with html/Javascript and I need
> to inform the user to fill all neccessary field in a webform if
> he/she didn't.
well, I found "alter("whatever...") but this is obviously not supported
by LC server. Or I did not add it to the LC script correctly?
I want to do something like this:
----------------------------------------
... html header...
<?lc
set the errorMode to "inline"
put url("file:danke.html") into tDanke
-- Need to check here:
if $_POST["name"] is empty then
alert("Bitte einen Emailadresse eingeben!\nPlease enter an emailaddress!")
-- give an error: command not found
exit to top
end if
...
---------------------------------------
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list