Topic: "BoardCode" (page 2 of 2)

< 1 2
Author Post
paralax
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
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.
private message EMail Website
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
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.
private message EMail Website
paralax
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Nope... clicking still doesn't do anything. I'm trying the smiles and everything. Nothing is inserted.. :(
private message EMail Website
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
Did you try to go on the page and then again explicitly reload it? Maybe the js-file didn't get updated.
private message EMail Website
paralax
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
Good show... very good. I exited my browser, and now it appends to the end. Thanks Erik! :)
private message EMail Website
paralax
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
hehe.. now everything inserts except for the hline tag from the buttons. :)
private message EMail Website
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
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 :noclue:
private message EMail Website
beerhunter
groupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
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.
private message EMail
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
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. :-)
private message EMail Website

Topic: "BoardCode" (page 2 of 2)

< 1 2