Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Include problems

Posted 28 Feb 2002 10:55:54
1
has voted
28 Feb 2002 10:55:54 Dennis van Galen posted:
Hi all,

I'm having problems including a sidebar navigation thingy.
I noticed that UDev stopped crashing after I removed the table codes in the .ssi file but now it gives me a yellow tag thingy in layout mode like so:

<body onload="MM_preloadImages('/images/sub_nav_home1.gif','/images/sub_nav_nieuws1.gif'...etc...)">

The weirdest of all this is that it displays a script icon, then the yellow tag error thingy and below that it shows the first 2 items (images) in my included menu followed by 6 UDev broken image icons and previewing the page just displays the page leaving the include out of it. It's pretty hairy and I can't figure out what's wrong.

Here's the complete .ssi files code:

<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#"!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('/images/sub_nav_home1.gif','/images/sub_nav_nieuws1.gif','/images/sub_nav_draaiboek1.gif','/images/sub_nav_contactpersonen1.gif','/images/sub_nav_documentatie1.gif','/images/sub_nav_autorisatie1.gif','/images/sub_nav_ontwikkelingen1.gif')">
<a href="/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','/images/sub_nav_home1.gif',1)"><img src="/images/sub_nav_home.gif" width="100" height="19" name="home" border="0"></a><br>
<a href="/systemen/OF/APindex.htm"><img src="/images/sub_nav_servicedesk-menu.gif" width="100" height="19" name="servicemenu" border="0"></a><br>
<a href="/systemen/OF/APnieuws.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nieuws','','/images/sub_nav_nieuws1.gif',1)"><img src="../images/sub_nav_nieuws.gif" width="100" height="19" name="nieuws" border="0"></a><br>
<a href="/systemen/OF/APdraaiboek.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('draaiboek','','/images/sub_nav_draaiboek1.gif',1)"><img src="../images/sub_nav_draaiboek.gif" width="100" height="19" name="draaiboek" border="0"></a><br>
<a href="/systemen/OF/OFcontact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contactpersonen','','/images/sub_nav_contactpersonen1.gif',1)"><img src="../images/sub_nav_contactpersonen.gif" width="100" height="19" name="contactpersonen" border="0"></a><br>
<a href="/systemen/OF/APdownloads.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('documentatie','','/images/sub_nav_documentatie1.gif',1)"><img src="../images/sub_nav_documentatie.gif" width="100" height="19" name="documentatie" border="0"></a><br>
<a href="/systemen/OF/OFautorisatie.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('autorisatie','','/images/sub_nav_autorisatie1.gif',1)"><img src="../images/sub_nav_autorisatie.gif" width="100" height="19" name="autorisatie" border="0"></a><br>
<a href="/systemen/OF/APontwikkelingen.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ontwikkelingen','','/images/sub_nav_ontwikkelingen1.gif',1)"><img src="../images/sub_nav_ontwikkelingen.gif" width="100" height="19" name="ontwikkelingen" border="0"></a>

Can anyone spot the problem ?
My thanks in advance.

With kind regards,

Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services

Replies

Replied 28 Feb 2002 15:21:09
28 Feb 2002 15:21:09 Dennis van Galen replied:
I fixed the codes...all images are now being displayed in UDev's layout view, but now it's complaining that the server model can't handle .shtml files ?! no .shtm either ???
What is going on here, is the .asp server model not meant for SSI's ?
Am I forced to rename them .asp ?
because that would mean no includes, this has to be online in a week and if it ends in .asp then it's subject to our intranet script check which takes forever (read: months).

Does anyone have a solution for me, besides manually placing all these menu's in ALL those pages, which IS going to take weeks...that's why i wanted to use this SSI thing.


With kind regards,

Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services

Reply to this topic