INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

HANDLE


PASSWORD
Remember Me
Forgot Password?

Come Join Us!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

E-mail*
Handle

Password
Verify P'word
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Member Feedback

"...These forums are an excellent source and example of the way people can help each other..."

Geography

Where in the world do Tek-Tips members come from?

 Weird characters showing up on a server side include page

Maven4Champ (TechnicalUser)
5 Apr 07 18:18
Greetings,

I currently have 4 server side includes in my website.

The odd thing is that on my last one that I added, it returns the page but in front of where the content starts, it has the following weird characters:


Page is visible here:
http://bringtheblitz.com/btb_black/

First question - is there a limit to the number of server side includes you can have?

If not, what else could be the problem.

The html for the ssi page returning the error is below:

CODE

<!-- Begin Advertisements -->
<a href="#top"><img border="0" src="../images2/advertisehere.jpg" width="151" height="600" alt="BringTheBlitz.com - Advertise Here" /></a>
<br />
<br />
<a href="http://bringtheblitz.com/community/"><img border="0" src="../images2/banner.jpg" width="151" height="381" alt="BringTheBltiz.com Forums" /></a>
<!-- End Advertisments -->

What could be causing this. It's almost as if (should there not be a limit) that there are hidden characters or something. No other errors that I can tell.

Here is also a portion of the code for the index.shtml page:

CODE

            <td class="column1" valign="top"><div align="center"><!--#include virtual="advertise.shtml" --></div>
            </td>
audiopro (Programmer)
6 Apr 07 3:34
Check out the validation of the page before you pull any more hair out.

http://validator.w3.org/check?uri=http%3A%2F%2Fbringtheblitz.com%2Fbtb_black%2F

Keith
www.studiosoft.co.uk

Maven4Champ (TechnicalUser)
6 Apr 07 10:38
Been there, done that.

W3C is attempting to validate my javascript which kicks back several errors but I have already done that and none of the errors are indicative of what is wrong with the server side include.

W3C was my first thought...A week ago...

Any other suggestions guys?
monksnake (Programmer)
6 Apr 07 10:47
As a trial and error thing, here's what I'd try.

1.  Remove the comments from the SSI.
2.  Make the href in the anchor something other than a string that contains a #
3.  Instead of include virtual, use include file.

I'm of the opinion that for some reason the comments are the problem, (at least the starting comment).

By the way, cool looking site, you spelled "advertise" incorrectly though in "adverise here"[shock]

monkeysnake <.

audiopro (Programmer)
6 Apr 07 11:27
Have you sorted it, the chrs no longer appear in IE6.
I don't do much Javascript but find it surprising that the validator doesn't ignore code within script tags.
Could that be a DOCTYPE issue?

Keith
www.studiosoft.co.uk

monksnake (Programmer)
6 Apr 07 11:42
The code within the script tags is supposed to be CDATA commented out to avoid validation parsing.

monkeysnake <.

audiopro (Programmer)
6 Apr 07 12:44
I like the look of your site, I usually avoid black backgrounds but yours works. You knew there was a criticism coming didn't you, not really a criticism but older guys like me don't see as well as we used to. The small red links are hard to read especially as they are underlined.
Other wise your site is eye catching.

Keith
www.studiosoft.co.uk

Maven4Champ (TechnicalUser)
6 Apr 07 13:36
I got the advertisements to work by doing an iFrame - not the way I wanted to do it.

Now however, in my header include it's doing the same thing. I was using Expression Web as a WYSIWYG editor with my partner to quickly add stuff like advertisements, etc. into the header file and now it's kicking back those characters too. Again, they don't show in the original html but do show once the page is published.

I tried include file instead of include virtual - same contents appear but still has the odd characters.

I have also added the CDATA comment so the javascript code doesn't parse.

P.S. Thanks for liking the site design - I've been working on it with a partner for a LONG time and this is my first real attempt at doing a css based design (trying to stray away from html designs and inline css for that matter) and use an external stylesheet for easy updating.

Is there a bug anyone knows about with invisible characters in Expression Web or general errrors that would cause this behavior?
Maven4Champ (TechnicalUser)
6 Apr 07 13:56
It appears this may be the problem but not sure of the solution....
http://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=210322&;SiteID=32
Maven4Champ (TechnicalUser)
6 Apr 07 14:00
Just to spread the love, I have found out how to fix it...

To fix it you have to manually open all pages ‘pieced-together’ by php or whatever SSI you use in Notepad, and then proceed to save them as “ANSI” files instead of unicode.. Then get back to work.

http://neosmart.net/blog/2006/expression-web-designer-and-internet-explorer-think-again/

Thanks guys. What a bummer - Expression Web is already failing on so many levels with these bugs...
monksnake (Programmer)
6 Apr 07 14:46
Interesting, thanks for sharing.

monkeysnake <.

audiopro (Programmer)
7 Apr 07 3:33
WYSIWYG's are good tools for learning HTML syntax but there comes a time to break away from them and do the coding by hand. It is much more flexible. At least you have solved that problem and so you are ready move on to the next one.

Keith
www.studiosoft.co.uk

Start A New Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Promoting, selling, recruiting and student posting
are not allowed in the forums.
Posting Policies

LINK TO THIS FORUM!
(Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum)
TITLE: HTML, XHTML & CSS (Cascading Style Sheets) Forum at Tek-Tips
URL: http://www.tek-tips.com/threadminder.cfm?pid=215
DESCRIPTION: HTML, XHTML & CSS (Cascading Style Sheets) technical support forum and mutual help system for computer professionals. Selling and recruiting forbidden.