Page 1 of 1

Which language is best for this?

Posted: Sat Dec 17, 2005 12:15 pm
by Longlands
I need to have two text panes on screen.

In one there would be text read in from a .txt file.

The user would highlight certain words or phrases by dragging the mouse over them.

The highlighted phrases would then appear as the heading of the second pane where the user could change them if required.

The change would be reflected back in the first pane.

Then the user would highlight their next selection and the process would repeat until the text file had been completely processed by the user.

I hope I've explained that well enough!

Can this be done with Javascript, or would I need some other language to achieve my aims?

Many thanks,

Martin.

Posted: Sat Dec 17, 2005 1:10 pm
by Chris Corbyn
If it's for a web interface JavaScript can do it for sure.

Look at [element].selection.createRange() :)

EDIT | You'll need to back it with a language that can access the filesystem susch as PHP too... that way can read/write the txt file.

Posted: Sat Dec 17, 2005 4:06 pm
by pilau
I wanna try and make this on my own :twisted:

Posted: Sun Dec 18, 2005 3:37 am
by m3mn0n
Flash also.