Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Forum Format Buttons Javascript A
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

instantnet11
New Member

USA
69 Posts

Posted - 30 December 2002 :  17:00:29  Show Profile  Visit instantnet11's Homepage  Send instantnet11 an AOL message  Send instantnet11 an ICQ Message  Send instantnet11 a Yahoo! Message
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

Posted - 30 December 2002 :  17:07:56  Show Profile
Um, is it really that hard to open inc_code.js and see all the functions for the various buttons?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

instantnet11
New Member

USA
69 Posts

Posted - 30 December 2002 :  18:22:03  Show Profile  Visit instantnet11's Homepage  Send instantnet11 an AOL message  Send instantnet11 an ICQ Message  Send instantnet11 a Yahoo! Message
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/

Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 30 December 2002 :  18:26:09  Show Profile
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 ~
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 30 December 2002 :  20:45:31  Show Profile
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
Go to Top of Page

instantnet11
New Member

USA
69 Posts

Posted - 30 December 2002 :  21:39:59  Show Profile  Visit instantnet11's Homepage  Send instantnet11 an AOL message  Send instantnet11 an ICQ Message  Send instantnet11 a Yahoo! Message
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/

Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 31 December 2002 :  04:12:05  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 31 December 2002 :  04:14:49  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 31 December 2002 :  11:04:07  Show Profile
hehe .... tag, you're it!

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 December 2002 :  12:29:03  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07