finding cursor position

This is a discussion on "finding cursor position" within the JavaScript Forum section. This forum, and the thread "finding cursor position are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 10th, 2007, 11:22
Junior Member
Join Date: Jun 2007
Location: IRan
Age: 19
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to bahy Send a message via Yahoo to bahy
Smile finding cursor position

in the name of GOD, hi


i'm creating a BB Code Editor,
I desined a button which when user click on it, it add some text in a textarea (for example by "body" name)
my codes say it which :
add text to the end of textarea, my code is this :
function insert_code(){
document.getElementById("body").value=document.get ElementById("body").value+'[ bold ] [ / bold ]';
}
but I want which this code add to the point which cursor in there.
not to the end of it.
If you help me I thank you !

Last edited by bahy; Jun 10th, 2007 at 11:27.
Reply With Quote

  #2 (permalink)  
Old Jun 13th, 2007, 14:46
Junior Member
Join Date: Jun 2007
Location: IRan
Age: 19
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to bahy Send a message via Yahoo to bahy
Re: finding cursor position

oh, plz help me
Reply With Quote
  #3 (permalink)  
Old Jun 15th, 2007, 14:15
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: finding cursor position

Sorry, but I truly don't understand what you are asking
Reply With Quote
  #4 (permalink)  
Old Jun 19th, 2007, 16:10
Junior Member
Join Date: Jun 2007
Location: IRan
Age: 19
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to bahy Send a message via Yahoo to bahy
Re: finding cursor position

look
i want design a button which when you click on it add some text such az "[bold][/bold]" in a textarea and where which cursor is there.
Reply With Quote
  #5 (permalink)  
Old Jun 26th, 2007, 14:07
Junior Member
Join Date: Jun 2007
Location: IRan
Age: 19
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to bahy Send a message via Yahoo to bahy
Re: finding cursor position

plz help me (((((((((
Reply With Quote
Reply

Tags
text cursor

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding Developers LordRaiden Job Opportunities 1 Jul 2nd, 2007 20:42
Cursor focus getting lost in IE kallol Web Page Design 5 Apr 10th, 2007 08:09
Controlling the blinking cursor position in safari browser vikki JavaScript Forum 0 Nov 4th, 2006 05:54
Custom cursor bruno89 Web Page Design 16 Aug 15th, 2006 00:49
changing cursor icon javanui JavaScript Forum 1 May 24th, 2006 16:07


All times are GMT. The time now is 23:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43