Click to See Complete Forum and Search --> : Browser displays my HTML Code


Janiijaniiie
09-29-2007, 03:12 PM
Instead of showing the actual page, it shows my code..!! how can i get it to understand i want the page and not the code ??? this has never happened to me!:mad:

Declan1991
09-29-2007, 03:26 PM
Which browser? You aren't by any chance using IE and send an XHTML header with the page?

Janiijaniiie
09-29-2007, 03:27 PM
I'm on Mac OSX and i'm using Safari but it does the same with Opera...

kiwibrit
09-29-2007, 06:37 PM
Link?

ray326
09-29-2007, 06:47 PM
It's probably being served with a text/plain content type.

WebJoel
09-29-2007, 06:55 PM
Showing all the code, -or just a few lines of it? Leaving out a tag's beginning or ending (-what's it called... 'delimiter'??) of either < " or " > " can do this (make the text appear, instead of what it is supposed to be/do). Usually though, the next 'opening' or 'closing' of any additional tag(s) re-sets this.
I like Ray's answer better though... And Kiwibrit's 'link' (show us the code) is probably needed. :)

harumph
10-01-2007, 10:26 AM
What did you build this page in? A WISIWIG editor or did you code from scratch? As they suggested, can you give (at least) a bit of your page source code--preferably from the top down?

Webnerd
10-01-2007, 12:52 PM
Are you sure are not performing a "source view" from SVN? SVN will show the code.

umamahesh1
10-01-2007, 02:03 PM
If you are using any scripting language..? For example in PERL, to make the HTML content (not the source code itself) display on the page then you have to include the shebang line "#!usr/bin/perl.exe" & also make sure that your webserver setting are appropriate