• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Seeking advice on finding a third-party control for a .jsp page

 
D. McPherson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I'm hoping that someone might be able to help me on the following:

I would like to have a textarea type control on a webpage that would permit a user to highlight some text in the 'textarea', open a file dialog box, and insert a link behind the scenes so that the highlighted text becomes a hyperlink to a file on the network.

It is for a helpdesk type application, whereby users can report problems or issues, and include links to supporting files such as .doc, .txt, .jpg, etc. that are saved on the network. Once the form including the textarea-like control is submitted, the data that was in the text area can be retrieved by other users, displayed, and will have functioning links pointing to the supporting files

The ideal situation would be functionality similar to that which is found in MS Word whereby a link to a local, network, or web resource can be included in a document.

Does anyone know of a free library that includes a control of this type that can do all the above? I've found, for example, TinyMCE (a WYSISYG editor), which seems to be able to do it, but the version that includes the above functionality is only available commercially. Other such (free) editors I've found allow the insertion of hyperlinks to web pages, but not to network resources.

Alternatively, how difficult would it be to write such a control?

Any help or advice would be gratefully received!

Thanks,

Don.

P.S. I know that in the page above I've created a similar link , but its really creating a link to a network resource that I'm after.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't seem like anything that JSP is going to help you with. You might want to search for JavaScript "rich editor" controls.

I've moved this along to the JavaScript forum.

 
D. McPherson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear, sorry about that!

Don.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YUI: http://developer.yahoo.com/yui/editor/

There are plenty of other projects out there.
 
D. McPherson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

Yes, I came across YUI2 when I was investigating my options. Unfortunately, like most of the other such controls I found, it just seems to provide the option to insert a URL to a webpage. What I'm trying to find is one that allows me to navigate to a file on a network.
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's unlikely you'll find one. JavaScript is explicitly denied access to file and directory information so that random websites can't explore your private files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic