answer command in .irev file

Tim Selander selander at tkf.att.ne.jp
Fri Jan 15 06:52:01 EST 2010


Thanks, Sarah. I found that on your website too -- which I have 
been spelunking for hints and tips. Great resource, thanks for 
putting it up!

Tim Selander
Tokyo, Japan


Sarah Reichelt wrote:
> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list