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:
  How to place the blinking cursor in a particular position in a text box?  vivekanandh_m at 03:28 on Friday, November 10, 2006
 

Hi,

I want to place the blinking cursor in particular position in textbox onclick of one button. I have acheived this in javascript by using the following code

var range = txtControlObj.createTextRange();
range.move("character", globalCursorPos);
range.select();



But it is working only in IE ,bcoz safari browser doesn't support createTextRange( ) method. Is there any other method in javascript to acheive this one..Pls help to do this out..

Thanks
vivek.








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