Author |
Topic  |
|
instantnet11
New Member

USA
69 Posts |
Posted - 30 December 2002 : 17:00:29
|
OK I did a search on this too. I would like to add more format buttons and since I have HTML on (yes I know security risk)
Q:What is the java code for making the button insert text into the text area? I didn't want to take apart the code. I thought it would take less time to 1)search the forums and/or 2)ask someone how to do it.
Thanks!
|
Thank you
Kieran Mullen
-------------
Free Snitz Web Site Hosting With Auto Setup
http://freeforums.instantnetworks.net/
|
Edited by - instantnet11 on 30 December 2002 17:03:18 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
instantnet11
New Member

USA
69 Posts |
Posted - 30 December 2002 : 18:22:03
|
Nikkol - Is it hard to drop the "god" attitude? I would epxect mroe from a "senior" member. No one forced you to reply.
I am asking because the .js code is intermixed with other info format mode for help etc...
Thanks |
Thank you
Kieran Mullen
-------------
Free Snitz Web Site Hosting With Auto Setup
http://freeforums.instantnetworks.net/
|
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 30 December 2002 : 18:26:09
|
quote: Originally posted by instantnet11
Nikkol - Is it hard to drop the "god" attitude?
Since you put it that way, then I'll let someone else dissect the code for you. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 30 December 2002 : 20:45:31
|
quote: Originally posted by instantnet11
Nikkol - Is it hard to drop the "god" attitude? I would epxect mroe from a "senior" member. No one forced you to reply.
I am asking because the .js code is intermixed with other info format mode for help etc...
Thanks
I will suggest some introspection as to "attitudes". There is an old saying in the US "you can catch more flies with honey than you can with vinegar".
Nikkol posts here regularly and helps many, many, many people, and IMHO gave you a reasonable response. Your reply to Nikkol may not induce many others to jump in with helpful replies :)
btw, I have no idea what the answer is, I actually don't understand your question.
|
====== Doug G ====== Computer history and help at www.dougscode.com |
 |
|
instantnet11
New Member

USA
69 Posts |
Posted - 30 December 2002 : 21:39:59
|
Just looking for Javascript that makes a button insert your desired text into a text area. Again I am asking becuase I already see the code but there is other code mixed in with it based on the level of help that you ask for when you make a new post. I just wanted the very simple code.
BTW Why isn't subscribe to topic turned on? Thanks |
Thank you
Kieran Mullen
-------------
Free Snitz Web Site Hosting With Auto Setup
http://freeforums.instantnetworks.net/
|
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 31 December 2002 : 04:12:05
|
It is very simple code. Take a good look at the code and concentrate for a moment. You will see a function begin then a lot of code then all of a sudden another function begins. Since you are the one that knows what you want you will find it useful to try and figure out how it works. It is not rocket science. And what you said to Nikkol was uncalled for. Encouraging people to figure things out is not a "god complex" at all but a subtle way of helping in a way that is ultimately the best help.
And some of the old timers here are, though I definately don't speak for them, generally quicker to help people that are polite, have obviously searched for answers and tried what they could. Asking for help should be one of the last stages in help seeking and being impolite about it is not one of the stages.
@tomic |
SportsBettingAcumen.com |
Edited by - @tomic on 31 December 2002 04:13:14 |
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 31 December 2002 : 04:14:49
|
Nikkol, I had to post this because we were tied for posts!!! LOL Now I am up by 1 
For a few minutes I am guessing...
@tomic |
SportsBettingAcumen.com |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 31 December 2002 : 12:29:03
|
Instantnet11, before I actually help you, I will also repeat what the others have said in this post. Your reply to Nikkol was uncalled for and quite impolite. She is respected here among the snitz community and someone who helps out a lot answering questions.
That said, lets move on. The javascript code is quite easy to dissect. The AddText() javascript function is what adds the text to the text box. This function is called by the other functions, depending on which button you pressed.
For instance, if you pressed the it calls the Bold() javascript function. The bold() function then sends the format code text [b] [/b] to the AddText() function which sends it to the message box.
So the forum code you see in the javascript is the text each function is sending to the message box.
Hope that explains things. |
Support Snitz Forums
|
 |
|
|
Topic  |
|