codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  get selected text  ayappa at 06:55 on Wednesday, January 10, 2007
 

I have an html page with text and images. I want the following functionality.

When The user selects some portion of text with the mouse, two tags should be inserted in the html file. One tag at the beginning of the selection as <para one> and the other tag at the end of the selected text as </para one>

The user should be prompted for the tag names when he selects the text with mouse and presses a submit button.

This way each selected portion of text will have start and end tags.
I shall then parse this html file for these tag names and store the tag names in a table for future use.

Please help with suitable javascript or vbscript code.

Thanks









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Date script issues
•  perl script help needed
•  onChange issue
•  perl remote execution
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007