Rhys666
Programmer
- May 20, 2003
- 1,106
No sure if anyone's going to have any idea's on this one but here goes.
I'm writing an application that is displayed through NTL/Telewest's Liberate digital interactive tv platform. This is basically an implementation of HTML/ASP/Javascript.
What I'm trying to acheive is to create a 'web' keyboard that displays text (as typed) in a textarea, except I have to manually force the text scrolling.
I've got this implemented and working except for when a line break is entered.
The text area is 3 rows and can display about 27 characters per row. Knowing the maximum displayable characters means I can assess how much text can be displayed before and after my cursor character (the same as in a word processor, displaying where typed text will appear), and I can give the impression of text scrolling as typed. However, when a new line is entered, this throws out the calculations.
Does anyone have any idea's as to how I can calculate for line breaks in my scrolling text?
Rhys
"When one burns one's bridges, what a very nice fire it makes" -- Dylan Thomas
"As to marriage or celibacy, let a man take the course he will. He will be sure to repent" -- Socrates
I'm writing an application that is displayed through NTL/Telewest's Liberate digital interactive tv platform. This is basically an implementation of HTML/ASP/Javascript.
What I'm trying to acheive is to create a 'web' keyboard that displays text (as typed) in a textarea, except I have to manually force the text scrolling.
I've got this implemented and working except for when a line break is entered.
The text area is 3 rows and can display about 27 characters per row. Knowing the maximum displayable characters means I can assess how much text can be displayed before and after my cursor character (the same as in a word processor, displaying where typed text will appear), and I can give the impression of text scrolling as typed. However, when a new line is entered, this throws out the calculations.
Does anyone have any idea's as to how I can calculate for line breaks in my scrolling text?
Rhys
"When one burns one's bridges, what a very nice fire it makes" -- Dylan Thomas
"As to marriage or celibacy, let a man take the course he will. He will be sure to repent" -- Socrates