Tags in dialog boxes and the command: resetAll

Ken Ray kray at sonsothunder.com
Fri Mar 20 16:13:33 EDT 2009


> I have to say this again, it drives me flippin nuts that I cannot use the
> answer dialog to view raw tagged code any more.  Any time a string with tags
> is answered, the dialog automatically tries to render them.  What if one
> doesn't want this?  What if one wants to debug some lines of HTML or XML?
> The code has to be dumped into a field or similar.
> 
> There should be some means to "answer" raw tagged code without rendering.

The problem is that the answer dialog in rev looks for any kind of tags in
the text, which is why for a long time I've been using my own answer dialog
which does things a lot differently.

Not that you want to do this for every Rev version that comes out, but you
could edit the script of card 1 of stack "Answer Dialog" in Rev and find
this line:

if "<p>" is in tText or matchChunk(tText, "<(.+>.+</.+)>") then set the
htmlText of field 1 of me to tText

and replace it with something else...


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the use-livecode mailing list