hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Insert string into a textbox
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Insert string into a textbox

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-20-2006, 07:31 PM
lilnomad lilnomad is offline
Junior 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.

Reply With Quote


Sponsored Links
  #2  
Old 10-20-2006, 08:03 PM
sasha sasha is offline
Hail Eris !
 
Join Date: Oct 2002
Location: Canada
Posts: 3,100
Is that what you are looking for:
http://tnt.goldnet.ca/argh/strintextbox.html

Reply With Quote
  #3  
Old 10-20-2006, 08:24 PM
lilnomad lilnomad is offline
Junior 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.

Reply With Quote
Sponsored Links
  #4  
Old 10-20-2006, 09:50 PM
maxymizer maxymizer is offline
Web Hosting Evangelist
 
Join Date: Apr 2005
Posts: 521
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>

Reply With Quote
  #5  
Old 10-20-2006, 11:07 PM
lilnomad lilnomad is offline
Junior Guru Wannabe
 
Join Date: Oct 2006
Posts: 31
Thank you very much.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Massive Change to the Web Culture is Just around the Corner, Offering Exciting Opportunities to Hosters Blog 2013-03-28 07:50:12
LogicBoxes Launches Service for New gTLD Operators Web Hosting News 2013-03-22 10:36:23
ICANN 45: New gTLD Overview and Information for Applicants with ICANN CSO Kurt Pritz Web Hosting News 2012-10-15 14:01:26
Cloud Outage hits Windows Azure in Western Europe (via Data Center Knowledge) Web Hosting News 2012-11-14 16:57:30
Will ICANN's New gTLD Application System Downtime Affect Web Hosts? Web Hosting News 2012-04-30 16:37:55


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?