Im working on a programm that will generate automated reports for people who filled out a survey. For making the templates for these reports I'm using FCK. I parse the template for syntax errors and then display a list of errors that were found at the top of the page.
I want to make it easy for the user to spot the errors. What i had in mind is a system where you click on an error and then the error gets selected in the text. In order to do so i isolate a string containing the error with a length long enough to make it a unique string in the text.
The problem comes with the actual selection of the that string in the text. I know there have to be search functions because the editor has find/replace functionality. I thought it might be wise to post here first, hoping some1 has done this before, instead of wasting hours trying to figure it out myself.
So in short: i've got a string, how do i make a selection of it in the text using FCK's functionality?
Thanks in advance,
Rolus
I want to make it easy for the user to spot the errors. What i had in mind is a system where you click on an error and then the error gets selected in the text. In order to do so i isolate a string containing the error with a length long enough to make it a unique string in the text.
The problem comes with the actual selection of the that string in the text. I know there have to be search functions because the editor has find/replace functionality. I thought it might be wise to post here first, hoping some1 has done this before, instead of wasting hours trying to figure it out myself.
So in short: i've got a string, how do i make a selection of it in the text using FCK's functionality?
Thanks in advance,
Rolus
Re: Select a certain string
Instead of using the find function to get a certain string highlighted, I can also retrieve the start position and end position of that string. Might i be able to use those positions to make a selection range with one of the editors functions?
Any help would be really appreciated.