|
-
Jan 17th, 2006, 11:41 AM
#1
Thread Starter
Member
Field Fill-in from Popup???
I have a popup link next to a field. The popup has a list of names of people that show as links. If a user clicks one of the links (people names) I want that name to go into the field. How do I do this?
Thanks!
James
-
Jan 17th, 2006, 01:46 PM
#2
Re: Field Fill-in from Popup???
Using Javascript is probably your best bet.
If your input field is defined something like as follows
HTML Code:
<input type="text" name="name" id="nameInput" />
you can use the following javascript to enter text into it
Code:
document.getElementById("nameInput").value = "Hello";
-
Jan 17th, 2006, 03:58 PM
#3
Thread Starter
Member
Re: Field Fill-in from Popup???
I know how to do a document.getElementById("nameInput").value. I need a way to move the value from the popup to the field on the original field.
Your answer doesn't resolve my problem.
Thanks!
-
Jan 17th, 2006, 04:00 PM
#4
Re: Field Fill-in from Popup???
Well what is the "popup"? Can you show me the page or the code for it?
-
Jan 17th, 2006, 09:22 PM
#5
Frenzied Member
Re: Field Fill-in from Popup???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|