Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    popup window with returning values

    I have a pop-up window that contains a list items. I used a radio button to pick one and that item was returned to requesting html page. Now I want to return more than one item at a time. I want to use a checkbox to pick the items and return all item check back to the calling html page.

    Looking for the code to do this. Thanx

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    What do you have so far? If we see the code you are currently using we can show you how to alter it.

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The code below links to a second html popup page with a list of item (this case a list carrier names and the state they are from).

    the main html page code

    <input type=hidden name=Carrier1 value="0">
    <input type=hidden name=Carrier1Name value="">
    <a href="javascript:requestMbr(document.forms[1].Carrier1,document.forms[1].Carrier1Name);" class="popup"
    onmouseover="window.status='Click here to select a carrier.'; return true;">

    this is the second part, this code is in the popup window html page with more javascript. the same code is repeated for each item.

    <input type=hidden name=Mbr1Nme value="ABC TRUCKING">
    <input type=radio name=Mbr1 value="100002" Onclick="javascriptpener.writeMbr(Mbr1,Mbr1Nme);self.close()";>

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    You could just build your form in the popup without the onclick event handlers in place, that way you could use a submit button on the form. Upon pressing the submit button you could loop through the from checking wich items were chossen and writing the messeages back to the main window in the same manner you are already using.


  •  

    Posting Permissions

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