Author | Post | |||
paralax |
lol.. i do like the boarer better, and the absence of the link icon. I'll try out some other stuff and see. I guess I'll have to find my IEXPLORE.EXE someone... MS kinda hides it when it isn't your default browser. |
|||
08.07.2004 07:48:01 |
|
|||
Erik |
I know fixed some javascript. So if the text-ranges aren't supported the tag should at least be appended to the text. This is much less comfortable but at least you don't have to compose the tags by yourself. Tell me please if this works four you. |
|||
08.07.2004 07:50:50 |
|
|||
paralax |
Nope... clicking still doesn't do anything. I'm trying the smiles and everything. Nothing is inserted.. |
|||
08.07.2004 07:52:44 |
|
|||
Erik |
Did you try to go on the page and then again explicitly reload it? Maybe the js-file didn't get updated. |
|||
08.07.2004 07:54:25 |
|
|||
paralax |
Good show... very good. I exited my browser, and now it appends to the end. Thanks Erik! |
|||
08.07.2004 07:56:35 |
|
|||
paralax |
hehe.. now everything inserts except for the hline tag from the buttons. |
|||
08.07.2004 16:44:37 |
|
|||
Erik |
Well that's strange. It's just like any of the other tags. No idea why it doesn't work for you while the others do |
|||
08.07.2004 17:40:45 |
|
|||
beerhunter |
Erik, you say that there are no standards for this. But there are! W3's HTML DOM, together with their Core DOM, make up the standard for exactly this sort of thing. It is standard to write: document.getElementById('mytextareatag').value += 'foo'; Still, it's nice to see that the buttons are working in Firefox now. The hline works fine for me, by the way. |
|||
09.07.2004 09:18:34 |
|
|||
Erik |
Hi, you misunderstood this. Of course I know of DOM and I know it is a standard. And if you look at any scripts (well in fact, almost every page here uses some javascript, especially Menu, Challenge-List, Private-Messages, Forum, and in very massive way the pages where there are those format-buttons on it) you will find everything done with DOM. What I said was related to textranges. Because in IE it works the way that you can select a text in the textarea, push the b-tag-button and then it places the [b] in directly before the selection and the [/b] directly behind it. That's much more comfortable. The point is that this stuff is no standard yet for sure. At least only a very few browsers, IE for example, support those text-range-objects. That's what I meant. If the script detects that there are no text-ranges, it works in the way you posted it. |
|||
09.07.2004 11:21:29 |
|