Sarah Reichelt wrote:
> 2010/1/15 Tim Selander <selan...@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."

Just a word of caution. Be aware that not all web clients are able to
raise a javascript alert. The iphone for instance just fails silently I
gather - because it's a single window environment. I would recommend
using javascript/css to hide and show these texts rather than javascript
alerts.

Martin Baxter
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to