+ Reply to Thread
Results 1 to 4 of 4

Thread: How do I keep the server from altering my HTML?

  1. #1
    rcresume is offline x10Hosting Member rcresume is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    8

    How do I keep the server from altering my HTML?

    I am creating some simple web pages and I'm finding that the server alters those pages from what I wrote. And I don't mean a tiny or subtle change either! For example, I wrote a very simple web page with something very close to this:

    ---
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Index</title>
    </head>
    <body>
    <h1>Welcome to index.shtml!</h1>
    </body>
    </html>
    ---

    then saved the file and viewed the page. Then I clicked on View Page Source in my browser and saw that the page had changed to this:

    ---
    <!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">
    <head>
    <title>Index</title>
    <script id="_nameHighlight_injection"></script>
    <link class="skype_name_highlight_style" href="chrome://skype_ff_toolbar_win/content/injection_nh_graph.css" type="text/css" rel="stylesheet" charset="utf-8" id="_injection_graph_nh_css" />
    <link href="chrome://skype_ff_toolbar_win/content/skypeplugin_dropdownmenu.css" type="text/css" rel="stylesheet" charset="utf-8" id="_skypeplugin_dropdownmenu_css" />
    </head>
    <body>
    <h1>Welcome to index.shtml!</h1>
    </body>
    </html>
    ---

    In other words, my DOCTYPE was completely overwritten plus a <script> tag and two <link> tags that I didn't want have been added to my code.

    Why is this happening and how can I stop it? I don't want my HTML altered, I want to leave it exactly the way I wrote it.

    --
    Cletus
    Last edited by rcresume; 03-09-2010 at 04:20 PM. Reason: Clean up line breaks.

  2. #2
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,743

    Re: How do I keep the server from altering my HTML?

    This is a Programming related question.

    ***Thread moved to Programming Help***
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  3. #3
    bankimoon is offline x10Hosting Member bankimoon is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    11

    Re: How do I keep the server from altering my HTML?

    eh, i would say its a hosting related question. did you read it? or just notice that it has code in it.

    unless this is ad free hosting, then you cannot change this. it puts ads in your html as compensation for allowing you a free host. its been a while since i logged into my account so i dont remember if this hosting is ad free or not. but if there are ads, then this is why your code is changing and if you want to solve the problem then you must pay for hosting.

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: How do I keep the server from altering my HTML?

    Quote Originally Posted by bankimoon View Post
    eh, i would say its a hosting related question. did you read it? or just notice that it has code in it.

    unless this is ad free hosting, then you cannot change this. it puts ads in your html as compensation for allowing you a free host. its been a while since i logged into my account so i dont remember if this hosting is ad free or not. but if there are ads, then this is why your code is changing and if you want to solve the problem then you must pay for hosting.
    You clearly do not know what you are talking about.
    Free accounts are ad free.
    If you wish to upgrade by putting in x10hosting ads, you have to put them on your pages manually yourself. The server does not insert code.

    rcresume : Do you have a url I could look at? Are you using FireFox? Do you have the Skype plug in installed?
    Last edited by descalzo; 03-09-2010 at 04:37 PM.
    Nothing is always absolutely so.

+ Reply to Thread

Similar Threads

  1. Quota on size of html file on server 'cossacks'
    By tletter in forum Free Hosting
    Replies: 1
    Last Post: 12-08-2008, 08:59 PM
  2. Altering elements made with innerHTML
    By Ixonal in forum Programming Help
    Replies: 3
    Last Post: 10-09-2008, 06:40 AM
  3. Altering MySQL Database
    By kryotek in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 05-20-2008, 11:17 AM
  4. HTML server down
    By trot_7 in forum Free Hosting
    Replies: 0
    Last Post: 10-01-2007, 08:40 AM
  5. weird error with perl and server side html
    By benho in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 09-20-2007, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers