ramone
03-05-2007, 04:33 PM
hello
i'm developing a flash cd, it contains, among other things, an interactive version of the Bible.
so a must-have feature is the capability of going directly to a specific point of the text by using abreviatures, for example Gen 2:1 must go to the first verse of the second chapter of the Genesis book
so far everything has worked ok, the text is shown in a TextArea component, a whole chapter is shown at any given time, the problem i have is how to position the textarea content to show the exact verse
the html contents of the textarea is structured this way:
<p class='heading'>Title for the verses</p>
<p>
<a name='4'>4</a> Text for the 4th verse
</p>
<p>
<a name='5'>5</a> Text for the 5th verse
</p>
but something i've found is that the textarea doesn't support that kind of html anchors, so i need a way to go straight to the right verse set in the abreviature, for example Gen 8:7 displays the whole eight chapter of the Genesis book, but i can't find how to go to the seventh verse,
the vPosition property of the textarea is just not enough since i can't tell the exact position of any given verse in the whole contents of the Bible, and if we take in account other factors like line wrapping and size of the textbox (this one will be sizeable) this problem becomes worse
could you give me a few opinions on this?? is there some alternative to the way i try to do things?, all i need is a way to position the textarea in the right text.
thanks for your advise
i'm developing a flash cd, it contains, among other things, an interactive version of the Bible.
so a must-have feature is the capability of going directly to a specific point of the text by using abreviatures, for example Gen 2:1 must go to the first verse of the second chapter of the Genesis book
so far everything has worked ok, the text is shown in a TextArea component, a whole chapter is shown at any given time, the problem i have is how to position the textarea content to show the exact verse
the html contents of the textarea is structured this way:
<p class='heading'>Title for the verses</p>
<p>
<a name='4'>4</a> Text for the 4th verse
</p>
<p>
<a name='5'>5</a> Text for the 5th verse
</p>
but something i've found is that the textarea doesn't support that kind of html anchors, so i need a way to go straight to the right verse set in the abreviature, for example Gen 8:7 displays the whole eight chapter of the Genesis book, but i can't find how to go to the seventh verse,
the vPosition property of the textarea is just not enough since i can't tell the exact position of any given verse in the whole contents of the Bible, and if we take in account other factors like line wrapping and size of the textbox (this one will be sizeable) this problem becomes worse
could you give me a few opinions on this?? is there some alternative to the way i try to do things?, all i need is a way to position the textarea in the right text.
thanks for your advise