User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Crazycode automatic insertion buttons. Page [1]  
bavander
All American
1567 Posts
user info
edit post

I've noticed that when you click on one of these buttons, it inserts the crazycode at the end of the editbox. If it is possible, and if javascript will let you, could you make it where it inserts it at the current cursor position.

1/14/2002 11:43:17 AM

CrazyJ
The Boss
2453 Posts
user info
edit post

i've looked all through the DOM for IE and netscape. i can't seem to find any property that gives an index of the cursor position. since i don't know the cursor position, i just append it on to the end. if anyone knows how to grab the cursor position of a textarea, speak up!

1/14/2002 2:17:01 PM

bavander
All American
1567 Posts
user info
edit post

Yea, I just noticed that myself. my bad.

Actually I found something interesting here that might help. I don't know yet, still lookin at it.

http://vdsluis.servicez.org/vdsluis.net/javascript/cursortext.php

It works on my IE.

[Edited on January 14, 2002 at 3:46 PM. Reason : .]

1/14/2002 3:25:54 PM

bavander
All American
1567 Posts
user info
edit post

But it doesn't work on my Konquerer or Mozilla/Netscape. If you use it be sure to use a browser detection script.

1/14/2002 3:56:57 PM

DirtyGreek
All American
29309 Posts
user info
edit post

yeah well since these boyeez dont give a shit about netscape that should be fine

1/14/2002 7:13:19 PM

 Message Boards » Feedback Forum » Crazycode automatic insertion buttons. Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.