i am returning an array of text snippets from coldfusion, and with each
snippet, I am returning the position where that snippet is found in the whole
body of text.
in flex, I am putting the whole body of text in a text area and am putting the
snippets in a List.
I am trying to set it up so that when I click a snippet in the list, the
snippet in the body of text is hilited. However this is not working. In
coldfusion, a new line character counts as a character. In a text area, it does
not seem to. So my hiliting is always off by the number of newlines found in
the text body before the snippet being hilited.
What I am thinking I could do is, in cold fusion, offset the returned index by
the number of newline chars cold fusion can find before the snippet. To do this
I would replace all newlines{2,} with one newline and then ListLen() using
newline as a delimiter up to the start of the snippet then say curIndex -
ListLen().
Thoughts? Ideas?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/