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 Coder
    Join Date
    Aug 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    from combo into iframe?

    hello !

    on the page http://www.javascriptkit.com/script/cut183.shtml there is an example of Double Combo. I want to change the line (function) so
    function go(){
    location=temp.options[temp.selectedIndex].value
    }


    that the via 2.nd combo selected web-site is shown in an iframe, not in a separate screen.
    thanks in advance for any help...

  • #2
    New Coder
    Join Date
    Aug 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    double combo & iframe

    hi

    as i look for a solution under the provided posts in the past, i found following answer on my question.

    TITEL:
    targeting the double combo drop down


    ANSWER:
    function go(){
    top.framename.location=temp.options[temp.selectedIndex].value
    }

    and change the framename to what every you named the frame.


    but i still couldn't get it work. how to replace/change the framename (between "" or ' ' or what/how). i tried all that variations but no use.
    So i stiil need help

  • #3
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,494
    Thanks
    3
    Thanked 500 Times in 487 Posts
    document.getElementById('framename').src=temp.options[temp.selectedIndex].value

    make sure the <IFRAME> has an ID as well as a name
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #4
    New Coder
    Join Date
    Aug 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi Vic

    your code is
    thanxxxx


  •  

    Posting Permissions

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