SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Expand outside the size of the iframe

    Hi all,

    I'm interested to know if there is a method to use so that a menu or other html items can expand outside the size of an iframe using JavaScript.

    I want people to be able to grab my menu <ul> as an iframe that is not as wide as all of the extended parts of the menu. However when I try it chops off the menu at the limit of the iFrame.

    Is there a way to use the full screen size for these expanded boxes?

    Many thanks
    Andy

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You should consider alternative means of distributing this menu for other sites to use. A JavaScript which writes the menu would work well. So would providing a menu-only HTML page for people to include through their own scripting (in PHP, if the URL wrappers are enabled, they can just include("http://www.example.com/menu.html")).

  3. #3
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    does it need the <head> etc

    Dan,

    If i'm pulling a menu.php file using include or a menu.html file does it need to have the <head> and <body> etc tags with it?

    I'm just guessing that the <head> and <body> from the main docuement aldready covers that information?

    just trying to make the code a efficent and small.

    Andy

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    include() just takes the contents of the file and puts them right there. It's taking place server-side before the page is sent to the browser. How that works into your HTML is up to you.


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
  •