Which language is best for this?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Longlands
Forum Newbie
Posts: 15
Joined: Tue Oct 25, 2005 3:36 am

Which language is best for this?

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

I wanna try and make this on my own :twisted:
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Flash also.
Post Reply