pentan Posted August 27, 2006 Share Posted August 27, 2006 Ok... simplest way to say it is I want to be able to do like you can when you responsd to a thread here: You have buttons that had in the markers in the text area for things like hitting the "B" button puts in here [b][/b]. I've tried to figure it out from looking at the code on this very page and searching for it, but I can't seem to get it to work. Anyone know of a tutorial? Quote Link to comment Share on other sites More sharing options...
gerkintrigg Posted August 27, 2006 Share Posted August 27, 2006 I don't know of a tutorial to do it, but if you'd like a hint, I'd probably use javascript to insert an extra bit of text. Not sure exactly how though. It could be done by using the b button as a form submit button which takes the text of the area and adds the required code to the box. You'd then need to interpret the code at runtime by finding the text between the two tags and changing it, then deleting the tags. I think this is called XML, but it's a fancy way of saying "make up your own tags".Hope this helps in some way. Quote Link to comment Share on other sites More sharing options...
onlyican Posted August 29, 2006 Share Posted August 29, 2006 Its called BB code. JavascriptGoogle BB code Tutorials Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.