answer command in .irev file
Sarah Reichelt
sarah.reichelt at gmail.com
Thu Jan 14 23:03:18 EST 2010
2010/1/15 Tim Selander <selander at tkf.att.ne.jp>:
> More playing with scripting .irev/html files.
>
> Is there any way to put up an answer dialog? I have a variety of
> small text files I'd like to pop up over the main page to give
> the user extra information....
Here is an On-Rev command that I use to create a JavaScript dialog,
similar to an answer dialog:
command doAlert tData
put "<script type=" & quote & "text/javascript" & quote into tJScommand
put ">alert('" & tData & "')</script>" after tJScommand
put tJScommand
end doAlert
Use it like this:
doAlert "This is just like an answer dialog."
But don't forget that you can "put" anything on to your web page,
including the contents of a text file.
Cheers,
Sarah
More information about the use-livecode
mailing list