Results 1 to 5 of 5
Thread: Insert string into a textbox
Hybrid View
-
10-20-2006, 07:31 PM #1Junior Guru Wannabe
- Join Date
- Oct 2006
- Posts
- 31
Insert string into a textbox
Does anyone have any tips on how I can get a link to insert a string into a textbox without reloading the entire page? I am familiar with PHP but I am thinking it is going to require some JavaScript. Any ideas would be appreciated.
-
10-20-2006, 08:03 PM #2Hail Eris !
- Join Date
- Oct 2002
- Location
- Canada
- Posts
- 3,103
Is that what you are looking for:
http://tnt.goldnet.ca/argh/strintextbox.html
-
10-20-2006, 08:24 PM #3Junior Guru Wannabe
- Join Date
- Oct 2006
- Posts
- 31
Kind of, except that it doesn't clear the entire textarea it just adds itself to the end.
-
10-20-2006, 09:50 PM #4Web Hosting Evangelist
- Join Date
- Apr 2005
- Posts
- 522
If you need to append something..well just modify the function on that link.
HTML Code:<a href="javascript://" onclick="document.someform.sometbox.value = document.someform.sometbox.value + 'some value is here';">this</a>
-
10-20-2006, 11:07 PM #5Junior Guru Wannabe
- Join Date
- Oct 2006
- Posts
- 31
Thank you very much.