Safari Browser Compatibilty Issue? Website appears in source code?

We have the following website below and it shows up as source code in Safari 4.0 and Safari 5.0.

We have considered that it may not be passing the variables in the URL that make the site visible...

Any additional ideas would be very helpful!

http://www.ensembletravel.ca/eads/ezine/2011/08/us/index.php?agency=Object&address=Object&phone=Object&email=agent@ensembletravel.ca



EnsembleAdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hugh McCurdyCommented:
Based on your description, I suspect a coding problem.  Some browsers are more "forgiving" than others. So, I went to http://validator.w3.org/   and pasted in your URL.

Sorry to say but you have a lot of work to do.  I would concentrate on the first 3 problems first.

0
Hugh McCurdyCommented:
BTW, I suspect this is what is causing Safari to show code instead of process code

Contradictory Parse Modes Detected!
0
EnsembleAdminAuthor Commented:
I know....and I want to add that I didn't code this...

Ugh..."Contradictory Parse Modes Detected!" Could that mean transitional is used on the page but an include file is using strict?

Or could this be related to a mime type issue from the server because I know the site isn't passing through a content-type even with it is coded coded into the head.

I have attempted to change the parse mode at the top of the page but it looks fine....Am I missing something simple here!

By the way I appreciate your help hmccurdy
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Hugh McCurdyCommented:
Try something like this except don't lose the JavaScript code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <title>Experience Travel E-zine</title>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
0
Hugh McCurdyCommented:
BTW, on the left side in Firefox under Linux (not exactly a major demographic), above sponsored video, I see

Object
Object
Object


Something else isn't working also.

Hugh
0
Dave BaldwinFixer of ProblemsCommented:
I don't think that will help.  I think this time the Validator has been fooled.  When I looked at the headers, the main is not returning Any content type, not "text/html" or anything that would tell the browser or the Validator how to interpret it.  It appears to me to be a server problem since it is the server that normally sends that header.

Try putting this near the top of the file before any text output and see if it helps:
header('Content-type: text/html');

If that works, then the server is not configured to send the right header.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hugh McCurdyCommented:
Yes, Dave, it could be the server.  Either way, he needs a solution.  If the validator is being fooled, Safari could also be being fooled.

Good to have another set of eyes on this, especially if you are right.

Hugh
0
EnsembleAdminAuthor Commented:
I will try both and let you know the success.

As for the object situation that is a customization tag that we have inserted into the site. Ignore that.

As an FYI I have attempted both of these solutions before with little luck but maybe I did it wrong.

I appreciate both of you taking the time!
0
Hugh McCurdyCommented:
Please let us know.  Part of how EE works is by the experts learning what actually worked.
0
EnsembleAdminAuthor Commented:
Well, I'm happy to say that the issue has been resolved due to the content type not passing.

The solution of header('Content-type: text/html'); was the correct one; which I tried a week ago unsuccessfully because I did not place PHP tags around it....sometimes I wonder about myself.

In order to fully solve the issue though I need to get into our IIS and adjust the content-type for this folder structure which is not passing.

Appreciate both of you helping me out with this!
0
EnsembleAdminAuthor Commented:
Once again, I appreciate both of you helping me out!
0
Dave BaldwinFixer of ProblemsCommented:
You're welcome, let us know how it works out.
0
Ray PaseurCommented:
No points for this, but all that Transitional and Strict stuff is kind of last-generation.  You might want to take a look at using the HTML5 doctype.  Just a thought...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.