SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Location
    Willoughby, OH
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post variable to form field from popup

    I have a Java applet that pops up, does some selections, and then sets a variable called "color". I can pickup that variable no problem on that page. However, I have a form in the main window, where I'd like that value to be automatically submitted to the text field. In the popup window, it could be a button like "choose this color". When you click it, it will take that "color" variable and insert it to the form field called "hex" in the form. That form is also in a frame called "content".

    I just haven't been able to get all of the components to work together. Any help would be greatly appreciated.

    Thank you,
    Craig
    Online billing for web developers, with a free 15-day trial.
    http://www.billingorchard.com/freeTrial.cfm

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    opener.framename.document.formname.fieldname.value = variableFromPopUp

    if you need more explanation, see the Adding Options from Child script/tutorial at my site. It explains passing & retrieving values.

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


Bookmarks

Posting Permissions

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