Forum Moderators: coopster

Message Too Old, No Replies

PHP, HTML or CSS rendering issues

PHP, HTML or CSS rendering issues

         

redhatlab

10:06 pm on Jan 10, 2010 (gmt 0)

10+ Year Member



Hi,

This is a weird one.

I have a site build in PHP and only in Safari and Chrome from time to time show me pieces of the html code.

I know the page is not timing out as and so far there is no error being logged in the server.

Any ideas?

TheMadScientist

11:04 pm on Jan 10, 2010 (gmt 0)

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



It's really a tough question to answer without seeing any of the code, and I'm not sure I understand what you mean by, 'from time to time show me a piece of html code.' Does it show the whole code the rest of the time? Does it usually not show any code? What circumstances does it do something different under? On a refresh? On an initial load? On the click of a particular link? Are there any query_strings involved? And the list keeps going...

Provide some pertinent code and detail about the issue and maybe one of us will have a guess as to what's happening and how to fix it.

redhatlab

11:46 pm on Jan 10, 2010 (gmt 0)

10+ Year Member



Hi,

Thank you for replying so quick.

Here is an image with a sample:

[empcnet.com...]

The good news is that if I refresh the code is not shown any more. Also if when the code is being show I save the page source code as a regular html page and I open it in a browser the visible piece of the code is not there anymore.

I blame my css skill for that and I use blueprint css just to test it and it did too. Also it only happens in Safari and Chrome.

redhatlab

12:13 am on Jan 11, 2010 (gmt 0)

10+ Year Member



Hi,

I found the problem.

It was not CSS, PHP or HTML it was TinyMCE.

The javascript was somehow messing with the HTML code. I remove it and the error was gone.

Thank you for your time.

TheMadScientist

12:37 am on Jan 11, 2010 (gmt 0)

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



Cool... Glad you got it working!