Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 2nd, 2004, 02:43 PM
rho rho is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Toronto, Canada
Posts: 45 rho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Entering text into a texfield by clicking a link?

Hi there,

I would like to enter several entries in a database to a textfield by clicking on several links.

Really, what I'm doing here is letting the user select from his/her addresses (by clicking on the addresses) and then populating the "To:" field with those addresses.

Can anyone help?


Reply With Quote
  #2  
Old April 2nd, 2004, 04:23 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Entering text into a texfield by clicking a link?

try:

<a onclick="document.formname.fieldname.value='input'>

Reply With Quote
  #3  
Old April 2nd, 2004, 04:44 PM
rho rho is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Toronto, Canada
Posts: 45 rho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Entering text into a texfield by clicking a link?

Hmm, I'm afraid that didn't work...

Reply With Quote
  #4  
Old April 2nd, 2004, 04:47 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Entering text into a texfield by clicking a link?

what about it did not work?

Reply With Quote
  #5  
Old April 2nd, 2004, 04:50 PM
rho rho is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Toronto, Canada
Posts: 45 rho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Entering text into a texfield by clicking a link?

Ok, I'm probably not doing it correctly:

<a onClick="document.mail.to.value=stuff">stuff</a>

Do I need "a href"?

Reply With Quote
  #6  
Old April 2nd, 2004, 04:56 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Entering text into a texfield by clicking a link?

yes, just add the href like so

href="#"

this will cause the link not to go anywhere when clicked.

Reply With Quote
  #7  
Old April 2nd, 2004, 04:57 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Entering text into a texfield by clicking a link?

also put stuff in single quotes like so

onClick="document.mail.to.value='stuff'"

Reply With Quote
  #8  
Old April 2nd, 2004, 05:19 PM
rho rho is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Toronto, Canada
Posts: 45 rho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Entering text into a texfield by clicking a link?

Thank you, that works perfectly.


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Entering text into a texfield by clicking a link?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway