htmlText and links
xbury.cs at clearstream.com
xbury.cs at clearstream.com
Wed Jan 7 10:45:38 EST 2004
Unless you redefine a new HTML standard, you out of luck.
The solution is to make a lookup table for your href links and substitute
the
formated lookup after the click...
<a href="my link is not formated">my link</a>
in a field you have the linkreferences containing the link and the
formated link separated by
your favorite itemdelimiter.
Then you
put the number of lines in char 1 to offset(mylink,linkreferences) of
linkreferences into thisline
put item 2 of line thisline of linkreferences into formatedlink
and VOILA!
Mind you the example script is not complete and the lineoffset will
probably fail...
cheers
Xavier
On 07/01/2004 16:30:29 use-revolution-bounces wrote:
>I have what may be kind of a strange question.
>
>I am using links in html to set up some text for users to click on and
have
>a definition displayed. The text consists of a word (or words) with the
>textStyle set to link, and the href for that link is set to the text of
the
>accompanying definition. Then using the linkClicked message I can
retrieve
>the definition and display it. This all works great.
>
>Now for my weird question. What I'd like to do is apply some automatic
>formatting to my definition. So certain words would be bold and certain
>words would be italicized. Is there any way to include the appropriate
tags
>within my html link? For example, in my text file, I might have
something
>like this:
>
><a href="A ball is something that you bounce.">ball</a>
>
>Is it possible to do something like this?
>
><a href="A <b>ball</b> is something that you bounce.">ball</a>
>
>I know the above does not work because I've tried it. I'm wondering if
>there is some kind of escape character that will allow me to literally
>include the tags in the href, then I could set another field's htmlText
to
>that. Is this even clear? :-)
>
>Any ideas?
>
>Thanks,
>
>Chris Sheffield
>Software Development
>Read Naturally
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
>
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE
Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.
END OF DISCLAIMER
More information about the use-livecode
mailing list