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 12 of 12

Thread: Iframe Help

  1. #1
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Iframe Help

    I'm testing a new Iframe menu for my website. I have everything working except the dropdown part of the menu.

    If you look at the menu file (here), you can see that the dropdown menu is working.

    I've placed the iframe in the page via the following:
    Code:
    <iframe id="iframe1" src="js/menu.html"
            width="750" height="30" scrolling="no" frameborder="0" style="overflow:visible; margin-left:25px" marginheight="0" marginwidth="0"></iframe>
    You can look at the test page it's in here.

    My question is:
    How can I get the dropdown parts of the menu to display with the iframe?

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    You need to add a target attribute to your link.

    Like this:
    <a href="10thgradedisclaimer.html" target="iframe1">10th Grade Work</a>

  • #3
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    adding a target didn't seem to help

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Hmm...did you make the target the name of the Iframe that you want the link to open in? Also, have you validated your document with W3C?

  • #5
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    yes i specified the target name in the link, didn't do anything so i removed it
    yes i validated w/ w3c and none of the errors have to do with anything pertaining to the menu

  • #6
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Code:
    <iframe id="iframe1" src="js/menu.html"
            width="750" height="30" scrolling="no" frameborder="0" style="overflow:visible; margin-left:25px" marginheight="0" marginwidth="0"></iframe>
    Change to "name" and then remember to put the target attribute in your links.

  • #7
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I tried that and it doesn't seem to be working either. I left the pages with that added so you can look at them and see if I did something wrong.

  • #8
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Just to clarify, which one of the URLs are we working with?

  • #9
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I think the question here would by why are you using your menu inside of the iframe? I'm guessing its because you don't want to have to edit the menu on each page if you wanted to change it. If this is the case then an iframe is not the proper solution. Using server side includes or php includes is the solution. Look those terms up to find out how to use them.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #10
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by CaptainB View Post
    Just to clarify, which one of the URLs are we working with?
    we're trying to get the dropdown submenu's to be visible

  • #11
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    I think the question here would by why are you using your menu inside of the iframe? I'm guessing its because you don't want to have to edit the menu on each page if you wanted to change it. If this is the case then an iframe is not the proper solution. Using server side includes or php includes is the solution. Look those terms up to find out how to use them.
    ok, i'll read up on that
    i'll also look into a friend building me a flash + xml menu

    thanks for the help everyone

  • #12
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have heard that one problem with the flash menus is that the part that pops up needs to be within the flash workspace. The only workaround that I have heard of is having the flash be a banner... my best guess is that using the php include() would be a good way to go.

    Also, on firefox mac, your iframe displays with a scroll bar, obsuring the lower half of all of the buttons.

    C

    Good luck


  •  

    Posting Permissions

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