PDA

View Full Version : Odd script error in IE


djhomeless
04-07-2006, 12:01 PM
Hi All,
This doesn't really have anything to do with phpld or css, so excuse me for posting here anyway. I've got a really weird problem with a script error showing up in IE, but not FF or Flock.

When I go to my homepage in IE, it says there is a syntax error on line 2, character 1. When I view source, this is what I find:
Content visible to registered users only.

So, it seems the error happening because of the " on line 2.

However, in Firefox, the line doesn't break, which is how it looks in my header file.

In the grand scheme of things, this doesn't really hurt my site. But I don't want to have my visitors think my site is "buggy".

Thanks in advance!

Geoffrey

Psyclones
04-07-2006, 12:14 PM
try and remove the return character between line 1 and 2 so that it reads

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

all on one line.

discover
04-07-2006, 12:42 PM
i have exactly the same problem but only with pages below my index
i dont know how u mean psyclones with removing the line to make it one..
looks exactly how it was before..?

Kevuk2k
04-07-2006, 12:45 PM
Content visible to registered users only.

Post your site url so we can all look at your site in the dozens of browsers out there for you. We all use different versions so you will get a full test.

Nice try G.

Kev

djhomeless
04-07-2006, 02:34 PM
Hi Kev,
Thanks so much for the offer.

My site is: altsearch.com

So far I've tried FF 1.5, Flock 0.52, and IE 6 on Windoze. I'm going to fire up my Linux box and have a look later today.

To psyclone: Thanks for your advice. Unfortunately, my header file has the code on one single line, ie there is no line break.

Geoffrey