BB Code - JavaScript Input thing... How?

This is a discussion on "BB Code - JavaScript Input thing... How?" within the JavaScript Forum section. This forum, and the thread "BB Code - JavaScript Input thing... How? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 4th, 2007, 17:34
Junior Member
Join Date: Apr 2007
Location: London, England
Age: 22
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JasonStanley Send a message via Skype™ to JasonStanley
BB Code - JavaScript Input thing... How?

OK, basically i want to create a somewhat simplified version of what forums have with their input.

For example when you press the URL button a box pops up and the B button adds [b] to the input box. Does anyone have a link to any articles on how to create this.
Reply With Quote

  #2 (permalink)  
Old May 4th, 2007, 18:29
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: BB Code - JavaScript Input thing... How?

Could you explain what you want in more detail please?
Reply With Quote
  #3 (permalink)  
Old May 4th, 2007, 21:07
Junior Member
Join Date: Apr 2007
Location: London, England
Age: 22
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JasonStanley Send a message via Skype™ to JasonStanley
Re: BB Code - JavaScript Input thing... How?

Look at the input panel around the input box when you start a new thread or post a reply. I need JavaScript to do that right? If so where exactly do i begin.

i.e. how do make it so that when the ¨b¨ button is pressed a appears in the input box, then when it pressed again a appears?
Reply With Quote
  #4 (permalink)  
Old May 4th, 2007, 21:34
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: BB Code - JavaScript Input thing... How?

a what appears in the box sorry?
Reply With Quote
  #5 (permalink)  
Old May 5th, 2007, 08:38
Junior Member
Join Date: Apr 2007
Location: London, England
Age: 22
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JasonStanley Send a message via Skype™ to JasonStanley
Re: BB Code - JavaScript Input thing... How?

Picture is attached in old style vb forums it didn't come with this word processor thing, it came with something simpler. When you pressed the "B" (Bold button) a BBCode [*B] would appear in your input box. When you press the "B" button again a[*/B] would appear to wrap your input in BBCode tags thus making your text bold.

I know how you create BBCode, thats easy enough, what i don't get is how you make the user interface. Which add's these tags. I really cannot make it much clearer than that.
Attached Images
File Type: jpg whatiwant.jpg (18.3 KB, 28 views)

Last edited by JasonStanley; May 5th, 2007 at 09:38.
Reply With Quote
  #6 (permalink)  
Old May 5th, 2007, 10:46
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: BB Code - JavaScript Input thing... How?

Here's an example of how to do one yourself:
http://www.cstruter.com/replyblog.php?ContentID=45

And here's a free one for download:
http://tinymce.moxiecode.com/example...p?example=true
Reply With Quote
Reply

Tags
bb code, javascript, user interface

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A new simple way to make a image slider- Javascript Code o0DarkEvil0o JavaScript Forum 1 May 20th, 2008 01:37
how can i use my javascript code with my asp.net page skat ASP.NET Forum 8 Mar 17th, 2008 02:57
For all Javascript Coding Experts, can you break down this code? BlackReef JavaScript Forum 12 Dec 10th, 2007 01:04
Help required with javascript code trb1975 JavaScript Forum 1 Oct 20th, 2006 21:16
Javascript code ignored by Netscape/Firefox commodorejim JavaScript Forum 2 Oct 14th, 2006 10:13


All times are GMT. The time now is 04:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43