| View previous topic :: View next topic |
| Author |
Message |
pikachamp
swore in chat!
|
Posted: Mon Sep 10, 2007 10:39 pm Post subject: 1 |
|
|
The post message menu has these handy little tag buttons that make it a bit easier to insert tags if you don't remember them. It also has clickable smiley faces.
Unfortunately, when you click them, it inserts the tag into the end of the text. Is there a way to have them insert the tag into the cursor position? |
|
| Back to top |
|
 |
worm
unregistered
|
Posted: Mon Sep 10, 2007 11:00 pm Post subject: 2 |
|
|
if you insert them as you type it's not a problem |
|
| Back to top |
|
 |
pikachamp
swore in chat!
|
Posted: Mon Sep 10, 2007 11:17 pm Post subject: 3 |
|
|
| I'm the type of person that constantly backs up in his text to change things. |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Tue Sep 11, 2007 6:44 am Post subject: 4 |
|
|
I don't know if it's technologically possible. If it is, it's complex. I don't think Javascript has a method to query the position of the cursor in a text box, as it's something handled by the OS and not the HTML form. _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
a lurker*
Guest
|
Posted: Mon Sep 24, 2007 8:54 pm Post subject: 5 |
|
|
| Antrax wrote: |
| I don't know if it's technologically possible. If it is, it's complex. I don't think Javascript has a method to query the position of the cursor in a text box, as it's something handled by the OS and not the HTML form. |
(Bolding mine)
Huh. I just highlighted the sentence I wanted bold before I clicked the button. The tags were automatically inserted where I wanted them. Doesn't seem to work for smilies, though. |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Mon Sep 24, 2007 9:37 pm Post subject: 6 |
|
|
Yes, that's not the same as inserting at cursor position. Again, I'm hardly an expert on these subjects, so if anyone knows a way, go right ahead. _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
Courk
Daedalian Member
|
Posted: Mon Sep 24, 2007 11:45 pm Post subject: 7 |
|
|
| Antrax wrote: |
| I don't know if it's technologically possible. If it is, it's complex. I don't think Javascript has a method to query the position of the cursor in a text box, as it's something handled by the OS and not the HTML form. |
I'll be honest, I haven't a clue what this really means. I know vBulletin can do it. Does that help? |
|
| Back to top |
|
 |
Neo
Daedalian Member
|
Posted: Mon Sep 24, 2007 11:54 pm Post subject: 8 |
|
|
Let this be a lesson to you Pika. Think your posts out before you start typing. _________________
Ad Astra
|
|
| Back to top |
|
 |
wordcross

|
Posted: Tue Sep 25, 2007 3:38 am Post subject: 9 |
|
|
| Courk wrote: |
| Antrax wrote: |
| I don't know if it's technologically possible. If it is, it's complex. I don't think Javascript has a method to query the position of the cursor in a text box, as it's something handled by the OS and not the HTML form. |
I'll be honest, I haven't a clue what this really means. I know vBulletin can do it. Does that help? |
What Antrax is saying is that when you type a message in your reply box, the position of the cursor is something that the Operating System (Windows or Linux, or Mac OSX, or whatever) keeps track of. Your browser (Internet Explorer, Firefox, Opera, etc.) doesn't have access to this information (or at least doesn't have easy access). So to write something that would affect the cursor position, it would have to be written in browser code (Javascript, PHP, Perl, what have you), but access Operating System code, interpret it, change it, do stuff, then clean it all up nice and pretty. This is not easy (even if you know what you're doing with both parts), and is nearly impossible in regards to all the combinations of the two that are possible.
I don't know enough about how cursors are handled to know if that's strictly true, but Antrax usually knows what he's on about
vBulletin may use some alternate code language that allows better access to OS information. Or maybe the programmers who developed it were awesome and can do magic, I don't know  _________________ Has anyone really been far even as decided to use even go want to do look more like? |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Tue Sep 25, 2007 6:50 am Post subject: 10 |
|
|
If vBulletin does it, then I may be wrong. I'll add it to my To Do list, which means I can start looking at it Oct. 8. _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Tue Sep 25, 2007 1:17 pm Post subject: 11 |
|
|
A quick google revealed something unsurprising - IE lets you do that, so I implemented a feature that works only on IE. Now I feel dirty  _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
The Ragin' South Asian
Head Poncho
|
Posted: Tue Sep 25, 2007 3:47 pm Post subject: 12 |
|
|
Wow. I never realized how much Antrax looooves IE.
| Antrax wrote: |
| I looooove Internet Explorer. |
 |
|
| Back to top |
|
 |
Courk
Daedalian Member
|
Posted: Tue Sep 25, 2007 7:17 pm Post subject: 13 |
|
|
vBulletin can do it in Firefox...
(That sounds like a little kid. "Billy's mom lets him stay up 'til 10!") |
|
| Back to top |
|
 |
Antrax
ESL Student
|
Posted: Tue Sep 25, 2007 7:35 pm Post subject: 14 |
|
|
Then I'll make a note to steal their code in two weeks or so. _________________ After years of disappointment with get rich quick schemes, I know I'm gonna get rich with this scheme. And quick! |
|
| Back to top |
|
 |
|