Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-07-2003, 12:17 AM   PM User | #1
bluephoenix
New Coder

 
Join Date: Dec 2002
Location: Central New York
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
bluephoenix is an unknown quantity at this point
SS-less Includes

I know I can include information from external CSS or Javascript files, but I was wondering if there was a way to include external html information if my server does not support SSI, such as footers or menues that appear on every page. I did a little research and I came up with the following:

http://www.w3.org/TR/html401/struct/objects.html#h-13.5

...text before...
<OBJECT data="embed_me.html">
Warning: embed_me.html could not be embedded.
</OBJECT>
...text after...

According to W3C I can use the object element to embed information. Unfortunately (as is the case with most web-standards) it doesn't work for me. I've even tried adding type="html/text" as an attribute to no avail.

Anyone run into this before and uncovered a solution?
__________________
Timothy Boronczyk
bluephoenix is offline   Reply With Quote
Old 01-07-2003, 06:14 AM   PM User | #2
BIATCHabutuka
New to the CF scene

 
Join Date: Jan 2003
Location: land of the buckeyes
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
BIATCHabutuka is an unknown quantity at this point
not my code, but i have used this about two years ago and it worked then. msie only if i recall though.

<object type="text/x-scriptlet" width="100" height="200" data="http://www.blahblahblah.com"></object>

enjoy.
BIATCHabutuka is offline   Reply With Quote
Old 01-07-2003, 03:35 PM   PM User | #3
bluephoenix
New Coder

 
Join Date: Dec 2002
Location: Central New York
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
bluephoenix is an unknown quantity at this point
hrm... essentially the same code save for the type...

is there a listing of the different type values, such as css/text, mpeg/application, etc?

Also, what about the embed tag?
__________________
Timothy Boronczyk
bluephoenix is offline   Reply With Quote
Old 01-08-2003, 04:10 PM   PM User | #4
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 593
Thanks: 1
Thanked 19 Times in 19 Posts
jalarie is an unknown quantity at this point
If you are certain that your users all have JavaScript, you could put the outside information into .js files and then pull them in. An example .js file might be:

&nbsp;Head_Lines=new Array(
&nbsp;&nbsp;'This is line 1',
&nbsp;&nbsp;'Line 2',
&nbsp;&nbsp;...,
&nbsp;&nbsp;'Final line has no ending comma'
&nbsp;);
&nbsp;
&nbsp;for (i=0; i<Head_Lines.length; i++) {
&nbsp;&nbsp;One_Line=Head_Lines[i];
&nbsp;&nbsp;document.write(One_Line);
&nbsp;}

Make it able to be referenced from each page:

&nbsp;<script src='head.js'></script>
jalarie is offline   Reply With Quote
Old 01-09-2003, 02:31 AM   PM User | #5
bluephoenix
New Coder

 
Join Date: Dec 2002
Location: Central New York
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
bluephoenix is an unknown quantity at this point
thanks.
__________________
Timothy Boronczyk
bluephoenix is offline   Reply With Quote
Old 01-09-2003, 12:46 PM   PM User | #6
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 593
Thanks: 1
Thanked 19 Times in 19 Posts
jalarie is an unknown quantity at this point
The above concept is used on every page at my site to display the you-are-here information, and on multiple pages to pull in other things specific to the individual pages. If you'd like to see it in action, come on over for a visit to:

&nbsp;http://spruce.flint.umich.edu/~jalarie/
jalarie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:59 AM.


Advertisement
Log in to turn off these ads.