ghz — 2003-06-05T18:14:38-04:00 — #1
I've been searching for this function to complete my script. In brief I want to have a text area where I can write anything in it. And beside it I want to have a picture or a botton and if I clicked that botton it inserts a text in the text area. The idea is similare to the clickable smilies in this forum. Is there any pice of code that I can use to do this job to me?
Any help would be appreciated in advance
jofa — 2003-06-05T19:17:52-04:00 — #2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
function insertText(elemID, text)
var elem = document.getElementById(elemID);
elem.innerHTML += text;
<input type="button" value="Insert some text" onclick="insertText('txt1', 'Hello');">
ghz — 2003-06-06T12:27:34-04:00 — #3
Thanx jofa that worked just FINE
How about the script that is used to post an image code in my post at this forum? I mean the prompt script which gives you the ability to add an image code in your post...May I have that pice of code too?
Thanx in advance
beetle — 2003-06-06T12:29:19-04:00 — #4
ghz — 2003-06-06T13:19:00-04:00 — #5
That's cool but where can get the source code? I tried to view it's source using the notepad But it didn't worked fine.
May I have that source for the TAEditor???
ghz — 2003-06-06T13:22:56-04:00 — #6
okay thanx alot beetle I found my mistake. now it's working just great thank youuuuuuuuuuuuuu
ghz — 2003-07-12T10:34:18-04:00 — #7
Hey jofa can I change the button into an image?? I tried to do it but I failed..plz
jofa — 2003-07-14T08:51:05-04:00 — #8
<input type="image" ...> maybe?
Or just an <img> with an onclick event handler added
beetle — 2003-07-14T09:14:29-04:00 — #9
Be careful with <input type="image" ...>, they submit the form when clicked!
jofa — 2003-07-14T09:16:14-04:00 — #10
...if you don't return false ?
beetle — 2003-07-14T09:17:20-04:00 — #11
ghz — 2003-09-10T11:02:03-04:00 — #12
It didn't work and you can try that jofa I simply need a smily system just like the one in here...
Thanx for the help