Creating a answer hyperlink
Ken Ray
kray at sonsothunder.com
Tue Aug 23 15:28:45 EDT 2005
On 8/23/05 2:08 PM, "Chris Sheffield" <revlist at cableone.net> wrote:
> On Aug 23, 2005, at 12:47 PM, Stephen Barncard wrote:
>
>> This puts up a neat dialog with a clickable link - but according to
>> the message watcher no messages are sent when clicked - even though
>> the link does hilite.
>> Guess it has to be built. But it would be neat to send a message
>> from the htmltext. The limitation is the dialog mode itself by
>> definition.
>
>
> Stephen,
>
> Not quite true. Well, maybe the message watcher doesn't see it, but
> it does work if you put a linkClicked handler in the same script
> where you call the answer dialog. I've got a program that uses this
> method and it works perfectly. The linkClicked handler then calls
> revGoURL like normal.
Can you clarify this a bit more, Chris? I tried this in a button:
on mouseUp
answer "<p>This is <a>a link</a></p>"
end mouseUp
on linkClicked pLink
put pLink
end linkClicked
and it didn't work... I clicked the link, but the answer dialog remained up
and nothing showed up in the message box.
Any hints?
:-)
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list