A webpage displaying a piece of text from a DB using PHP and javascript.
Parts of the text need to be highlighted with a background color also based on record(s) from the DB containing start character index and length. The user must be able to select a portion of the text and that is then to be stored as an additional section to be highlighted.
For example DB contains "To be or not to be." as well as a record with start=9 lenght=3.
The text should be displayed with 'not' having a yellow background.
User selects the second 'be',
an additional record is to be stored with start=16, length=2
( action of capturing and storing may be done using either an event or a button )
The text is then re-displayed with both 'not' and the second 'be' with a yellow background color.
Aspects such as overlapping selections or a selection inside an existing selection can be ignored at this time. That level of finetuning will be done at a much later stage as part of a much bigger project. At the moment i just want to see the basic functionality working as described in the example.
Read attached file carefully !
I've split the functionality in steps.
You MUST give me the page containing Fase 1 so i know you have some idea what to do.
Only then will i consider your bid for the whole script.