a question of directing a link into a...

User 2168940 Photo


Registered User
49 posts

Thanks Jo Ann,

I'll try and explain a bit better. At this point, I define four <DIV> elements in an external CSS document. There is a static "Header" and "Footer", and a left <DIV> "Navigation" that will eventually contain a linking "Menu" and a right <DIV> that I am calling "Content".

I've done all of this because I am assuming that since the "Header" and "Footer" are never going to change there is no point in redrawing a whole new page if only the "Content" is going to change.

So... for example I could have one menu selection for "Resume". The link could be <a href="resume.html">"Resume"</a>. Sadly, that isn't what I want to do. I'm trying to discover a statement that will send resume.html just into the <DIV ID="content"> ummm area?

Does this make sense?

Thanks again, Jo Ann
-Paul-
User 122279 Photo


Senior Advisor
14,571 posts

Maybe I wasn't clear enough in my first reply here. The method 'object includes' does exactly that. The mentioned 'links.html' and 'rechts.html' are one file each, and the same two appear on all the pages. You can do the same for the header and footer.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2168940 Photo


Registered User
49 posts

Hi Inger,

You were clear in your first post... but the <object style> has me baffled.

Using the <object style>="" method presents me with both a border and a scroll bar. I can't figure out how you have used this without the border and scroll bar.

Secondly, I have tried to use it as a link from within a menu. Doesn't seem to know what I want it to do. Probably because I am trying to direct resume.html to a <DIV>.

This is a simple idea of how the menu (stored in li9nks.html) is arranged now:
<ul class="menu-menu sf-vertical">
<li><a href="http://">Front Page</a></li>
<li><a href="http://">Photographs</a></li>
<li><a href="http://">Contact Me</a></li>
<li><a href="<object style="width: 150px; height: 350px;" data="resume.html"></object>">Resume</a></li>
</ul>

Not sure how to go forward.

-Paul-
User 184085 Photo


Ambassador
1,707 posts

I could be wrong, but it looks like you are trying to load an entire web page resume.html into a button, rather than link the page resume.html to a button.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

I could also be wrong, but I think your premis of since the top and bottom is static and the middle is dynamic so only program in a way that the top and bottom stay while the middle changes is using up alot of programming energy for a few milliseconds of speed.

I could tell better when I see your site, but in general all the style elements in a css page is kept in teh buffer of the browser and only the page html is downloaded, most of the time I ask myself how much difference will it make if I donload 75 lines of code, or 100 lines of code. Remarkably little differnce actually.

The type of layout you are heading for is fairly streight forward. If I had to guess at the solution to one of your problems it would be to have the menu load a web page and then in that webpage have it page load the object. Not load the object into the page via a menu item.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 122279 Photo


Senior Advisor
14,571 posts

Paul, could you perhaps upload the site as you have it now, even if it is unfinished work. It is much easier to help if we can see and inspect the problem. It seems to me that you are making a big problem out of something very easy.

If you don't want to upload the site for the world to see, then please post a zip file here with your html and css files.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,571 posts

Oh, forgot to mention: you avoid the border and scrollbar by setting the dimensions for the object so that the contents in the included file (in my case links.html) fit into the window.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2168940 Photo


Registered User
49 posts

Hi Inger,
Yeah, it does seem like a lot of work.. but then what is WWW without links?

zip file is attached...... and to refresh:

Menu items would be in the <DIV ID=navigator>

different pages would be in the <DIV ID="container">

Thanks for all your help, Inger. I like your avatar, by the way. It reminds me of "here", northern Canada, but not as far north as Norway. Been to Oslow... BRRRRRRR! Sweet hockey players

-Paul-
Attachments:
User 122279 Photo


Senior Advisor
14,571 posts

Got it. I'll have a look in the morning. It's 01:15 here now. Unless someone else gets here before me, of course.

I live in the south of Norway, near a town named Kristiansand :)

And I don't play hockey ;)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 184085 Photo


Ambassador
1,707 posts

Paul Bruneau wrote:
It reminds me of "here", northern Canada,


Where bouts eh?
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.