Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI - Can I call javasript / css or meta tags with SSI? 2

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
CA
Hi!

Is it possible to call meta tags, javascripts or css code from SSI files?

Here’s what I want to call from within my SSI .txt files:

<script type='text/javascript' src='/java/file.js ></script>

<link rel=&quot;stylesheet&quot; href=&quot;scripts/css/file.css &quot; type=&quot;text/css&quot;>

<meta name=&quot;keywords&quot; content=&quot;running, fast, speed, jogging, sweating, water, wet, towel, shoes, sports&quot;>


I tried calling the above from SSI files, but I wasn’t successful.

Thanks,
Jenny :)
 
Hi Jenny,

It must work Jenny , but I saw some typos in your example, like a missing ' and a missing /
Personaly I put everything between &quot; &quot;
I made some corrections in my example below.

This is what I did with SSI and it works fine:

<head>
<!--#INCLUDE VIRTUAL=&quot;/headdefaults.htm&quot;-->
</head>

put this in the file 'headdefaults.htm':

<script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;/java/file.js&quot;></script>
<link rel=&quot;stylesheet&quot; href=&quot;/scripts/css/file.css&quot; type=&quot;text/css&quot;>
<meta name=&quot;keywords&quot; content=&quot;running, fast, speed, jogging, sweating, water, wet, towel, shoes, sports&quot;>

I also found a non SSI solution from 'ristmo2001'
I didn't check it so I don't know if it works, but if your SSI don't work it's worth to try.

<object type=&quot;text/x-scriptlet&quot; width=&quot;75%&quot; height=&quot;75%&quot; data=&quot;page.html&quot;>
</object>

see his thread thread215-185645

Erik

<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Boomerang!

First: You rule!
Second: Thanks a lot!

Everything worked great!

Take care,
Jenny

P.S. > Does it matter if I use single quotes (' ') or double (&quot; &quot;) ?
 
Hi JennyW,

I was taught that it's only supposed to work with the &quot;&quot;.
But I guess that MSIE will accept '' in html tags.

I always use &quot;&quot; personally.

BobbaFet
BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com

Heineken is like making love in a cano... it's f*cking close to water !!!
 
Hi I need some help with what I think is &quot;css&quot; but I could be wrong. I need to find out what coding is used without having to learn all of that extra stuff. Anyone ever notice out there when you put your courser on a link how it changes the color of the font. Or how it changes the background color? Or even how at first the links arn't underline but when you put your courser on the links they just underline themselves right away? Well thats what I'm wanting to do.


Well I have my own website wich I am willing to give out but acually if you could just explain exacly what the coding is and where to put it in the rest of the coding I would thank you for that. NOTE: I know html coding thats the only type of coding I &quot;think&quot; I've used on my website I dont use a pagebuilder I only use html coding. Thanks1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top