Loading html
-
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
-
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
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
-
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
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