Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Loading html

Loading html

Scheduled Pinned Locked Moved Web Development
javahtmltoolsquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andyg 101
    wrote on last edited by
    #1

    is there a way to load an html document into another one using java script?

    T 1 Reply Last reply
    0
    • A andyg 101

      is there a way to load an html document into another one using java script?

      T Offline
      T Offline
      theJazzyBrain
      wrote on last edited by
      #2

      What is it that you want to do... If you give some more details I think that I can help you... theJazzyBrain Wise is he who asks good questions, not he who gives good answers

      A 1 Reply Last reply
      0
      • T theJazzyBrain

        What is it that you want to do... If you give some more details I think that I can help you... theJazzyBrain Wise is he who asks good questions, not he who gives good answers

        A Offline
        A Offline
        andyg 101
        wrote on last edited by
        #3

        Here is my problem from another forum I tried: I tried IFRAME and it worked with a bit of fiddling, but I don't like the extra scroll bars it adds, and I think that it only works in IE...... though not sure. I read in another post about server side includes, but I don't know any php, and wasn't sure if I should do it that way. I managed to load the page using Java Script like this

        #menu
        {
        position:relative;
        background :#66CCCC;
        float:left;
        width:20%;
        height:100%;
        }
        #content
        {
        position:relative;
        float:left;
        height:100%;
        width:80%;
        }

        menu goes here

        parent.location.href='../html/ch1/notes/Unit1a.htm';

        (I put another post about thisJ) However I have the problem with the file being over writing the menu, I tried changing to relative positioning with little luck. What I want to do is have two columns side by side, one menu and on the right a dynamically loaded html page. I am writing some javascript to automatically generate a menu of links from the heading tags in my html page, that is the eventual aim. So that whatever page is loaded a set of hyperlinks will be put on the left. The idea is to save me time in making up a menu though it hasn't worked so far :-(. BTW, is there a way to specify a fixed column width for one column, and have another expand to fill the rest of the screen cf frames?? Cheers Andy

        T 1 Reply Last reply
        0
        • A andyg 101

          Here is my problem from another forum I tried: I tried IFRAME and it worked with a bit of fiddling, but I don't like the extra scroll bars it adds, and I think that it only works in IE...... though not sure. I read in another post about server side includes, but I don't know any php, and wasn't sure if I should do it that way. I managed to load the page using Java Script like this

          #menu
          {
          position:relative;
          background :#66CCCC;
          float:left;
          width:20%;
          height:100%;
          }
          #content
          {
          position:relative;
          float:left;
          height:100%;
          width:80%;
          }

          menu goes here

          parent.location.href='../html/ch1/notes/Unit1a.htm';

          (I put another post about thisJ) However I have the problem with the file being over writing the menu, I tried changing to relative positioning with little luck. What I want to do is have two columns side by side, one menu and on the right a dynamically loaded html page. I am writing some javascript to automatically generate a menu of links from the heading tags in my html page, that is the eventual aim. So that whatever page is loaded a set of hyperlinks will be put on the left. The idea is to save me time in making up a menu though it hasn't worked so far :-(. BTW, is there a way to specify a fixed column width for one column, and have another expand to fill the rest of the screen cf frames?? Cheers Andy

          T Offline
          T Offline
          theJazzyBrain
          wrote on last edited by
          #4

          andyg.101 wrote: I tried IFRAME and it worked with a bit of fiddling, but I don't like the extra scroll bars it adds, and I think that it only works in IE...... though not sure. You can disable the scroll bars of the IFRAME. It works on Netscape 7.0 and on the latest version or Opera. I cant see any reason why you are not using standard frames. Just find a beginners tutorial in HTML and you will be surprised that the FRAMESET tag is excactly what you need... theJazzyBrain Wise is he who asks good questions, not he who gives good answers

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups