View Full Version : Passing HTML onto a text area
TonysDesigns
02-26-2005, 08:25 AM
Hi guys! I'm new here. I am looking for some javascript help. I would like to know how to pass HTML onto a text area with click of a button.
EG: is just like this text area here on this forum where I am typing now with this button right here in this forum's texarea (look below)
I would like to be able to click a button then a popup comes up, then the user fills out the URL, then hits submit. Then the TEXT is passed onto the textarea with formatted HTML for an image. Hope you understand!
codegoboom
02-26-2005, 08:02 PM
Which part are you having trouble with? Post the code, and describe the problem...
TonysDesigns
02-27-2005, 07:52 AM
Well, I don't have the code at all. This I think I'll need help with coming up with the code
Which part are you having trouble with? Post the code, and describe the problem...
codegoboom
02-27-2005, 08:27 AM
Well, have you tried anything yet? I don't mean to give you a hard time about it, but uh... check out the forum's posting guidelines, for one:
3) Do your homework first. Only post the part of the script you're having trouble with! There are generally two types of people- ones that simply dump their entire page or problem and expect everyone to spend hours solving everything for them, and those that do their own homework first, and only ask very specific, manageable questions. The later invariably gets more and better responses from others. When you're lazy, do not expect us to be hardworking for you.
As an example, lets say you're working on a long script that uses the "switch" statement of JavaScript, and it's returning errors. You could either:
i) Post the entire script and simply say "Please debug this script for me!"
ii) Or, localize the problem yourself first and post instead "Can someone tell me the syntax of the switch statement in JavaScript?"
The second question will get a LOT more quality responses, as it is concise, manageable, and not overwhelming. Remember, ask for the world, and you'll get nothing. Ask for a little, and you'll get a lot.
If you need the very basics explained, you may find various references (http://codingforums.com/showthread.php?t=17254) to have those covered.
If you need help with any step along the way, ask about that in isolation (break the problem down first--you may end up answering your own question in the process).
Search the forum too... many similar, archived, answered, questions may turn up. :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.