Results 1 to 5 of 5

Thread: Field Fill-in from Popup???

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    32

    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

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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";

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    32

    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!

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Field Fill-in from Popup???

    Well what is the "popup"? Can you show me the page or the code for it?

  5. #5
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: Field Fill-in from Popup???

    http://www.webreference.com/programm...t/jf/column11/

    This might be a reference for you to achieve that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width