Forum Moderators: open

Message Too Old, No Replies

SSI's only load on short pages

They don't load on longer pages

         

Lorel

11:22 pm on May 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a website set up with css only--3 columns. the page works fine except one of the server side includes in right side column only loads when the main content column is very short-about 6 inches in length. On longer pages it doesn't load although another server side include in the same place loads. The column I'm putting it in is 200 pixels wide and this is the width of google search. At first I thought this was the problem but it loads on shorter pages so that's not it.

Anyone know what could be causing this?

Here is the one that doesn't work:
<!--#include file="googlesearch.txt" -->

Here is the code for googlesearch:

<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE width="200" align="left"><tr>
<td> <A HREF="http://www.google.com/search?safe=vss">
<IMG SRC="http://www.google.com/logos/Google_Safe.gif"
width="115" height="45" border="0" ALT="Google"></A>
<INPUT TYPE=text name=q size=25 maxlength=200 value="">
<INPUT type=hidden name=safe value=strict>
<INPUT type=submit name=sa value="Google Search">
</td></tr></TABLE>
</FORM><br><br>

and here is the one that does:

<!--#include file="weatherfeed.txt" -->

Here is the feed for weatherfeed that does work:

<br><br>
<div id="wx_module_8881">
<a href="http://www.weather.com/weather/local/43431">Gibsonburg Weather Forecast, OH (43431)</a>
</div>
<script type="text/javascript">
var wx_locID = '43431';
var wx_targetDiv = 'wx_module_8881';
var wx_config='SZ=180x150*WX=FHW*LNK=SSNL*UNT=F*BGI=spring*MAP=null¦null*DN=DOMAIN.com*TIER=0*PID=1037599802*MD5=39a0c53a24b3997ab97f758d1071ad89';
document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
</script>

I just noticed that google search has this:
<input type=hidden name=ie value=UTF-8>
and i use this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Could that be the problem?

penders

11:48 am on May 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hhhmmm, I fail to see how a SSI can fail to load depending on the content/size of the page. The SSI happens on the server, it doesn't know anything about the page content.

Are you sure it's not loading? It may be loading, but just not displaying in the page? Have you checked the source of the page in the browser? By the sounds of it, your page size is determind by the height of the main content column? It may be more of an HTML/CSS issue?

<input type=hidden name=ie value=UTF-8>

This does not effect the SSI. This line is actioned only when the google search form has 'loaded', the user has completed the form and hit the submit button - the information is then sent to google. However, it does look as though the content-type in this hidden field should perhaps match the content-type in your meta element(?)

Lorel

9:46 pm on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I switched the content-type to match my meta element and also loaded the Google image from my own image file and inserted the code right in the page code (without an ssi) and still Google search won't load on the page on long pages although there is a blank space where it should be. On short pages it loads just fine.

There is a weather feed that loads right below it in the same column so it's not a problem with one column shorter than the other.

Anyone ever experienced this before?

jdMorgan

11:52 pm on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure what is loading client-side and what is loading (being 'included') server-side, but a nagging question in my mind is, "Are you completely flushing your browser cache between tests?" -- Not hitting "refresh," not hitting "Control-F5," but going into the browser control panel and deleting the cached files?

It wouldn't hurt to delete the search cookies occasionally, either.

This may or may not help, but no, I haven't seen this before, and it's not making a lot of sense to me.

Jim

Lorel

2:54 pm on May 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have the code inserted in the doc, not loading by SSI. I emptied the cache and still it doesn't load.

However I discovered this only occurs in Safari on the Mac. The code loads ok on Firefox, Opera and Netscape on the Mac and Win XP IE6 and it doesn't matter whether its via ssi or directly loaded within the code (It wasn't loading on WinXP IE 6 when I first posted this message so something I did above has fixed the problem on WinXP.