D
DaveR
Can anybody help me to a)get the user's cursor insertion point (caret)
from a multiline textbox, using client-side script I suppose, and then
b)return the position to VB code behind?
I have tried the following client-side function suggested on this
Google Group (thank you) but I'm not sure what it's doing or how to
return the caret position to code behind ("txtReading" is the Textbox
ID):
function getcaretpos(txtReading)
{
if (txtReading.createTextRange)
txtReading.caretPos =
document.selection.createRange().duplicate();
}
from a multiline textbox, using client-side script I suppose, and then
b)return the position to VB code behind?
I have tried the following client-side function suggested on this
Google Group (thank you) but I'm not sure what it's doing or how to
return the caret position to code behind ("txtReading" is the Textbox
ID):
function getcaretpos(txtReading)
{
if (txtReading.createTextRange)
txtReading.caretPos =
document.selection.createRange().duplicate();
}