Print
Add To Favorites
Email To Friend
Rate This Article
|
CodeSnip: Inserting Text at Cursor Location Using JavaScript
|
by Pallavi Mahure
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
34668/
88
|
|
|
|
| Conclusion |
In this article we demonstrated how another text can be
inserted into the cursor position of TextBox control in ASP.NET using
JavaScript. To use this code, a user can just open a new ASP.NET page and on the
HTML side just paste the above code and run it.
|
|
|
|
|
Article Feedback
User Comments
Title:
Good Task
Name:
HASIB Team
Date:
6/14/2010 7:17:25 AM
Comment:
Good Task
|
Title:
Not working in FireFox
Name:
veer
Date:
5/14/2010 5:09:41 AM
Comment:
code is good but not working in FireFox
|
Title:
Thanks
Name:
SYKIM
Date:
4/29/2010 8:40:09 PM
Comment:
YES, That is the Program, I have been finding
|
Title:
Not working in FireFox
Name:
Wazir
Date:
12/15/2009 12:58:38 PM
Comment:
Oop! this is working fine in IE. but not in FireFox.
|
Title:
Copy & paste
Name:
Mick H
Date:
9/25/2009 3:43:20 PM
Comment:
Thanks loads, as a newbie stuff likes this really helps. This was a copy and paste and change the object names for me and it replaced a load of my dodgy code. Thanks again.
|
Title:
Just Satisfactory
Name:
Bushra Jii
Date:
7/20/2008 12:15:30 PM
Comment:
this code is too much confusing. hard to understand
|
Title:
Wow
Name:
ch.VenkateswaraRao
Date:
8/9/2007 1:12:31 AM
Comment:
This is an excellent piece of code. Pallavi u did an extra ordinary Job with JavaScript. Thank U very Much for code snippet. Regards Venki
|
Title:
window.event.returnValue = false;
Name:
Pallavi
Date:
2/27/2007 1:06:06 AM
Comment:
In normal case in ASP.NET the server side events are fired after java script execution .If you do not want to fire server side events after the execution of java script, you need to end the java script function with window.event.returnValue =false. We normally use this in case of validation using java script.
|
Title:
Good Job.
Name:
Sumit Kumar Dhal
Date:
2/26/2007 2:21:27 AM
Comment:
Good job pallavi. I am a .net windows programmer, and do not know much about power of java script. This will encourge me to do some web work.
|
Title:
good job 10x, one question
Name:
kabba
Date:
2/22/2007 9:10:29 AM
Comment:
window.event.returnValue = false;
What's with this line of code??
|
Title:
almost there
Name:
Poloman
Date:
2/2/2007 11:22:34 AM
Comment:
This looks perfect for what I'm after - but it doesnt quite work if i have line breaks in my text box - I think the special char is getting mixed with the line breaks and so its inserting an offset of the number of lines down that the cursor is positioned - any suggestions?
|
Title:
Larisa loves pictures
Name:
love@sunset.so
Date:
1/22/2007 10:37:53 AM
Comment:
Great code sniplett. I like this user friendly aproach, because I believe it will help my website visitors to be more happy about my site.
Thank you for sharing this tutorial with me !
|
Title:
Good Job.
Name:
Sumit Kumar Dhal
Date:
1/19/2007 12:35:26 PM
Comment:
Good job pallavi. I am a .net windows programmer, and do not know much about power of java script. This will encourge me to do some web work.
-sumit
|
|
Product Spotlight
|
|
|