Closed Thread Icon

Preserved Topic: includes (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18198" title="Pages that link to Preserved Topic: includes (Page 1 of 1)" rel="nofollow" >Preserved Topic: includes <span class="small">(Page 1 of 1)</span>\

 
JakeB
Paranoid (IV) Inmate

From: us
Insane since: Oct 2000

posted posted 06-19-2001 06:07

is there a way to include a lot of div's i typed up onto every page i make? a long time ago, in the archives, some one said to use server side includes. Is this possible using just a html not a shtml?

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 06-19-2001 07:28

Probably not.

Most server admins will require you to use the .shtml extension. It is possible for them to have the .html work but it's not recommended. So if you want to know for sure, ask your server admin.

The server won't even look at your .html page to see if it needs to include anything. It's the .shtml that flags that need to the server.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-19-2001 14:24

Yeah, turning it on for .htm files makes the server check every page for SSI code. If you're like us, and every page has SSI, that's fine. But most hosts won't do it because of the strain it puts on the servers.

You can also embed an object, and make the object another page. Do this by using:
<object type="text/x-scriptlet" width="300" height="200" data="/path/to/page.html">
</object>


I haven't really tested this much, but I know it works in IE 5.5



[This message has been edited by Pugzly (edited 06-19-2001).]

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 06-19-2001 17:25

could always write up a .htaccess file

-mage-

JakeB
Paranoid (IV) Inmate

From: us
Insane since: Oct 2000

posted posted 06-19-2001 18:53

would the .htaccess work for any browser? what do i have to do? i changed on a little bit when i set up a server on my computer, but not much.

is there any reason i wouldn't want to name my files all .shtml?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-19-2001 19:17

http://bignosebird.com/sdocs/enable.shtml

JakeB
Paranoid (IV) Inmate

From: us
Insane since: Oct 2000

posted posted 06-21-2001 05:31

would it be bad to make a javascript and say

document.write('code here');

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-21-2001 09:19

It would be bad only if some of your visitors have JS turned off...

JakeB
Paranoid (IV) Inmate

From: us
Insane since: Oct 2000

posted posted 06-21-2001 16:36

then that might help because the other part of my menu is javascript. i just meant would it do something to netscape that it doesn't do in ie.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-21-2001 18:37

There's no big issue with naming all of your files .shtml I've done it before.

Biggest issue is the use of index pages you may need to drop and htaccess file in your root directory to let you make index.shtml your default home page.


Walking the Earth like Kane

JakeB
Paranoid (IV) Inmate

From: us
Insane since: Oct 2000

posted posted 06-21-2001 22:15

i might have to take the shtml idea, cause i think there is no way around this, unless i can set it to a varaiable, or won't it work?

document.write('onclick="return buttonClick(this, 'MarketsMenu');"...code...');

because i have little quotes inside little qoutes it get's confused.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-21-2001 22:56

You can escape them with slash (\), like this:

document.write('onclick="return buttonClick(this, \'MarketsMenu\');"...code...');

galaxal
Paranoid (IV) Inmate

From:
Insane since: Oct 2000

posted posted 06-22-2001 03:45

if you dont have SSI, do document.write(), I used that trick before.
my experience was that it takes forever to load with netscape on slow computers if you use that method.

why don't you explain your scenario, we may come up with a better solution than document.write()!!


« BackwardsOnwards »

Show Forum Drop Down Menu