Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ssi, image ready slices

    I'm not sure what I'm doing wrong, new to ssi's. My original page (view the source for the code) is at http://faernynsgrove.com/mycorset/index.html and my test ssi include is at http://faernynsgrove.com/mycorset/index1.shtml . My goal is to have all my background with the links be in an ssi so I don't have to update each individual page.

    Thanks for any input...
    rene

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    [an error occurred while processing this directive]

    Umm... You forgot to state exactly what the problem is. So far all I know is I see two of those messages and "I'm not sure what I'm doing wrong".
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Css

    My goal is to have all my background with the links be in an ssi so I don't have to update each individual page.
    Wrong approach; background images have a presentational character and should therefore be implemented using CSS. The navigation itself however could be implemented using ssi's.

    To be able to help solve any problems with those, we need to see the original page source though (before server side processing).
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    New to the CF scene
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The background images and the navagation are not coming up... the page has an [error processing this request]. The source code for the page that is messed up is below followed by the code of the original page that I am trying to implement. I have to follow all of this up by... I graduated in 1999 with a graphic design focused on web design, which means that I may as well be 12 and staring at this stuff for the first time (I have not kept up with it). In school, I never heard the term ssi, and css sheets were lightly defined for us, but deemed unimportant as we moved on.

    Thank you for your replies!!

    THIS ONE HAS THE ERRORS

    <html>
    <head>
    <title>Sustainable Clothing, Corsets, Bridal Corset, Certified Organic Cotton, Hemp Fabric Store, Austin, Texas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
    background-color: #D9CAAE;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    .style5 {font-family: Georgia, "Times New Roman", Times, serif; font-size: large; color: #000000; }
    .style7 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 24px; color: #000000; }
    .style9 {font-family: Georgia, "Times New Roman", Times, serif; font-size: medium; color: #990000; }
    -->
    </style>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body>

    <div id="Layer1" style="position:absolute; left:165px; top:145px; width:577px; height:851px; z-index:1">
    <table width="580" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="589"><div align="center"><form name="mlControl" action="/maillist_control.php" method="post">
    <table>
    <tr>
    <td width="200" align="center">Enter email address to subscribe to our mailing list!</td>
    </tr>
    <tr>
    <td><input type="text" name="subscriber" id="subscriber" value="" />
    <select name="saction" id="saction">
    <option value="1">Subscribe</option>
    <option value="2">Unsubscribe</option>
    </select></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><input type="submit" value="Submit" /></td>
    </tr>
    </table>
    </form>

    <table width="400" border="0" cellpadding="5" cellspacing="5">
    <tr>
    <td><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/corsets.htm"><img src="images/corsets/thumb/silkmirrorcst.gif" width="144" height="252" border="0"></a></font></div></td>
    <td><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/dresses.htm"><img src="images/dresses/thumb/orangeledr.gif" width="144" height="252" border="0"></a></font></div></td>
    <td><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/separates.htm"><img src="http://faernynsgrove.com/mycorset/images/separates/thumb/maroongoldwrap.gif" width="144" height="252" border="0"></a></font></div></td>
    </tr>
    <tr class="style7">
    <td><div align="center" class="style7"><a href="http://faernynsgrove.com/mycorset/corsets.htm">Corsets</a></div></td>
    <td><div align="center" class="style7"><a href="http://faernynsgrove.com/mycorset/dresses.htm">Dresses</a></div></td>
    <td><div align="center" class="style7"><a href="http://faernynsgrove.com/mycorset/separates.htm">Separates</a></div></td>
    </tr>
    </table>
    <br>
    <br>
    <br>
    <font color="#990000" size="7"> </font>
    <table width="351" border="0" cellspacing="5" cellpadding="5">
    <tr>
    <td width="145"><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/gallery.htm"><img src="images/gallery/thumb/bluedress.gif" width="144" height="252" border="0"></a></font></div></td>
    <td width="61">&nbsp;</td>
    <td width="145"><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/events.htm"><img src="http://faernynsgrove.com/mycorset/images/events/back.jpg" width="168" height="252" border="0"></a></font></div></td>
    </tr>
    <tr class="style7">
    <td><div align="center"><a href="http://faernynsgrove.com/mycorset/gallery.htm">Gallery</a></div></td>
    <td>&nbsp;</td>
    <td><div align="center"><a href="http://faernynsgrove.com/mycorset/events.htm">Events</a></div></td>
    </tr>

    </table>
    <center>
    <br>
    </center>
    <div align="center"> <br><br><br>
    <span class="style5">&copy; Rene Geneva 2005 </span><br>
    <br>
    </div>

    <font color="#990000" size="7"> &nbsp;</font></div></td>
    </tr>
    </table>

    </div>[an error occurred while processing this directive]
    [an error occurred while processing this directive]

    </body>
    </html>


    THIS IS THE ONE THAT I AM TRYING TO TAKE NAVIGATION OUT OF AND PUT INTO SSI

    <html>
    <head>
    <title>Sustainable Clothing, Corsets, Bridal Corset, Certified Organic Cotton, Hemp Fabric Store, Austin, Texas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
    background-color: #D9CAAE;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    .style5 {font-family: Georgia, "Times New Roman", Times, serif; font-size: large; color: #000000; }
    .style7 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 24px; color: #000000; }
    .style9 {font-family: Georgia, "Times New Roman", Times, serif; font-size: medium; color: #990000; }
    -->
    </style>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body>
    <!-- ImageReady Slices (mycorset3.psd - Slices: 26, blank, body, contact us, corset lacing, corsetcare, corsethistory, corsets, dresses, edge1, edge2, events, fabrics, gallery, leather care, links, organics, separates, size chart, stich, title1, title2, top) -->
    <div id="Layer1" style="position:absolute; left:165px; top:145px; width:577px; height:851px; z-index:1">
    <table width="580" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="589"><div align="center"><form name="mlControl" action="/maillist_control.php" method="post">
    <table>
    <tr>
    <td width="200" align="center">Enter email address to subscribe to our mailing list!</td>
    </tr>
    <tr>
    <td><input type="text" name="subscriber" id="subscriber" value="" />
    <select name="saction" id="saction">
    <option value="1">Subscribe</option>
    <option value="2">Unsubscribe</option>
    </select></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><input type="submit" value="Submit" /></td>
    </tr>
    </table>
    </form>

    <table width="400" border="0" cellpadding="5" cellspacing="5">
    <tr>
    <td><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/corsets.htm"><img src="images/corsets/thumb/silkmirrorcst.gif" width="144" height="252" border="0"></a></font></div></td>
    <td><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/dresses.htm"><img src="images/dresses/thumb/orangeledr.gif" width="144" height="252" border="0"></a></font></div></td>
    <td><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/separates.htm"><img src="http://faernynsgrove.com/mycorset/images/separates/thumb/maroongoldwrap.gif" width="144" height="252" border="0"></a></font></div></td>
    </tr>
    <tr class="style7">
    <td><div align="center" class="style7"><a href="http://faernynsgrove.com/mycorset/corsets.htm">Corsets</a></div></td>
    <td><div align="center" class="style7"><a href="http://faernynsgrove.com/mycorset/dresses.htm">Dresses</a></div></td>
    <td><div align="center" class="style7"><a href="http://faernynsgrove.com/mycorset/separates.htm">Separates</a></div></td>
    </tr>
    </table>
    <br>
    <br>
    <br>
    <font color="#990000" size="7"> </font>
    <table width="351" border="0" cellspacing="5" cellpadding="5">
    <tr>
    <td width="145"><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/gallery.htm"><img src="images/gallery/thumb/bluedress.gif" width="144" height="252" border="0"></a></font></div></td>
    <td width="61">&nbsp;</td>
    <td width="145"><div align="center"><font color="#990000" size="7"><a href="http://faernynsgrove.com/mycorset/events.htm"><img src="http://faernynsgrove.com/mycorset/images/events/back.jpg" width="168" height="252" border="0"></a></font></div></td>
    </tr>
    <tr class="style7">
    <td><div align="center"><a href="http://faernynsgrove.com/mycorset/gallery.htm">Gallery</a></div></td>
    <td>&nbsp;</td>
    <td><div align="center"><a href="http://faernynsgrove.com/mycorset/events.htm">Events</a></div></td>
    </tr>

    </table>
    <center>
    <br>
    </center>
    <div align="center"> <br><br><br>
    <span class="style5">&copy; Rene Geneva 2005 </span><br>
    <br>
    </div>

    <font color="#990000" size="7"> &nbsp;</font></div></td>
    </tr>
    </table>

    </div><!--#include virtual="/ssi/mc1.shtml"-->
    <table id="Table_01" width="756" height="1050" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td> <a href="http://mycorset.com"><img src="imgs/title1.gif" alt="" width="147" height="111" border="0"></a></td>
    <td colspan="2"> <a href="http://mycorset.com"><img src="imgs/title2.gif" alt="" width="608" height="111" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="111" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/corsets.htm"><img src="imgs/corsets.gif" alt="" width="147" height="27" border="0"></a></td>
    <td colspan="2" rowspan="19" background="imgs/body.jpg"><div align="left"></div></td>
    <td> <img src="imgs/spacer.gif" width="1" height="27" alt=""></td>
    </tr>
    <tr>
    <td> <img src="imgs/bridal.gif" alt="" width="147" height="25" border="0"></td>
    <td> <img src="imgs/spacer.gif" width="1" height="25" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/dresses.htm"><img src="imgs/dresses.gif" alt="" width="147" height="24" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="24" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/separates.htm"><img src="imgs/separates.gif" alt="" width="147" height="28" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="28" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/gallery.htm"><img src="imgs/gallery.gif" alt="" width="147" height="28" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="28" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/events.htm"><img src="imgs/events.gif" alt="" width="147" height="27" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="27" alt=""></td>
    </tr>
    <tr>
    <td> <img src="imgs/blank.gif" width="147" height="47" alt=""></td>
    <td> <img src="imgs/spacer.gif" width="1" height="47" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/companyinfo.htm"><img src="imgs/companyinfo.gif" alt="" width="147" height="32" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="32" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/contactus.htm"><img src="imgs/contact-us.gif" alt="" width="147" height="23" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="23" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/links.htm"><img src="imgs/links.gif" alt="" width="147" height="27" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="27" alt=""></td>
    </tr>
    <tr>
    <td> <img src="imgs/blank-09.gif" width="147" height="32" alt=""></td>
    <td> <img src="imgs/spacer.gif" width="1" height="32" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://mycorset.com/phpBB2"><img src="imgs/forums.gif" width="147" height="29" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="29" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/corsethistory.htm"><img src="imgs/corsethistory.gif" alt="" width="147" height="29" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="29" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/corsetlacing.htm"><img src="imgs/corset-lacing.gif" alt="" width="147" height="31" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="31" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/leathercare.htm"><img src="imgs/leather-care.gif" alt="" width="147" height="28" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="28" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/corsetcare.htm"><img src="imgs/corsetcare.gif" alt="" width="147" height="30" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="30" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/sizechart.htm"><img src="imgs/size-chart.gif" alt="" width="147" height="29" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="29" alt=""></td>
    </tr>
    <tr>
    <td> <a href="http://faernynsgrove.com/mycorset/fabrics.htm"><img src="imgs/fabrics.gif" alt="" width="147" height="33" border="0"></a></td>
    <td> <img src="imgs/spacer.gif" width="1" height="33" alt=""></td>
    </tr>
    <tr>
    <td rowspan="2" background="imgs/stich-17.gif">&nbsp; </td>
    <td> <img src="imgs/spacer.gif" width="1" height="383" alt=""></td>
    </tr>
    <tr>
    <td rowspan="2"> <img src="imgs/edge2.gif" alt="" width="607" height="27" border="0"></td>
    <td> <img src="imgs/body-25.jpg" width="1" height="1" alt=""></td>
    <td> <img src="imgs/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
    <td background="imgs/edge1.gif">&nbsp; </td>
    <td> <img src="imgs/mycorset3_26.gif" width="1" height="26" alt=""></td>
    <td> <img src="imgs/spacer.gif" width="1" height="26" alt=""></td>
    </tr>
    </table>
    <!-- End ImageReady Slices -->
    </body>
    </html>

  • #5
    Regular Coder
    Join Date
    Mar 2006
    Location
    Connecticut, USA
    Posts
    400
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Last I knew, to handle SSI's, the calling/parent document must be named with an shtml extension. This will probably be your problem.

    However, that error message looks suspiciously like a Cold Fusion error..... but I could be wrong about that. If your server has Cold Fusion, you have much more flexibility than just using includes.

    But let's start simple. Try changing your parent docs (the main file(s)) to .shtml rather than .htm. Let us know how you make out.

  • #6
    New to the CF scene
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That was already done. The first code listed, which includes that ssi's, is listed .shtml.

    Thanks!

    Regarding Cold Fushion... eh? Don't know.. do I need to know?

  • #7
    Regular Coder
    Join Date
    Mar 2006
    Location
    Connecticut, USA
    Posts
    400
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Communication breakdown.... I think you misunderstood. Or maybe I misunderstood, but lemme try again. Let's say, for argument's sake, you have a template file. This is what I am calling the PARENT. It contains all your important content, but the navigation and stuff gets pulled in thru an include.

    Like I said, the SHTML extension NEEDS to go to this file, the PARENT.

    The PARENT, in turn, calls on the INCLUDE files which contain the navigation. The files that get INCLUDEd can be pretty much ANY extensions -- TXT,HTM,HTML, whatever. So.

    If you have worked that out already, try simplifying your paths. Put everything into one folder, then call the includes relatively (meaning no slash in front).

    Make sure the PARENT file, the template, has an shtml extension, and give the includes, the navigation files, a TXT extension, for now.

    If I am still misunderstanding you, what you should do is paste EACH of your files, WITH their filenames into another post, and use the [#] CODE buttons in the reply interface to wrap your code.

    The way these are supposed to work is that you have a mama file called, for example, mama.shtml.

    It's contents look like this:

    Code:
    <html>
    <head></head>
    <body>
    <!--#include virtual="leftnav.txt"-->
    <div id="content">
    Here is some content.
    </div>
    <!--#include virtual="footer.txt"-->
    </body>
    </html>
    And then your includes might look like:
    leftnav.txt:
    Code:
    <div id="nav">
    <ul>
    <li><a href="#">Link 1</a></li>
    <li><a href="#">Link 1</a></li>
    </ul>
    </div>
    footer.txt:
    Code:
    <div id="nav">
    Copyright 2010 Space Odyssey Productions - All Rights Reserved
    </div>
    re: Cold Fusion. Forget that, not important.

  • #8
    New to the CF scene
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ah, yes, yes.. I see what you're asking. The parent file is .shtml...

    Thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •