ID's for linked text?

Ken Ray kray at sonsothunder.com
Thu May 11 18:15:05 EDT 2006


On 5/11/06 10:07 AM, "Derek Larsen" <dll392 at gmail.com> wrote:

> I have a text field that has specific paragraphs setup as linked. I'd like
> to find a dynamic way to find out which one of those paragraphs the user
> clicked on without having to know the content of the paragraph.
> 
> 
> 
> Is there any kind of ID or number associated with each link? I haven't been
> able to find anything useful in the documentation.

Not really, but if you want to use HTML, you can add your own ID to linked
text... for example if you do this:

put "<a href=" & quote & "Test" & quote & ">This is a test</a>" into tHTML
set the htmlText of fld 1 to tHTML

and then have code in the field that says:

on linkClicked pLink
  answer pLink
end linkClicked

When you click on the "This is a test" link text, it will answer "Test".

HTH,

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