Click to See Complete Forum and Search --> : Code disappearing when uploaded
Very strange problem I can't figure out:
I've created an index.htm page with the following piece of code included --
</head>
<body>
<img src="images/banner.gif" alt="Arnold Lane" border="0" width="610" height="150" vspace="2">
Web page looks fine on my hard drive, with the banner image showing OK.
But -- when I upload to the web, the line
<img src="images/banner.gif" alt="Arnold Lane" border="0" width="610" height="150" vspace="2">
is being stripped out. Doesn't appear when viewing Source code online, and the image is missing from the web page, and it's happening with both IE7 and Firefox.
I've made various other changes to the code, and reloaded, to make sure it's a fresh page loading each time -- but no matter what else I change, this same line is missing after upload.
Any ideas?? Have never come across this kind of thing before. And this same code used in the same place on other sites I've made has worked perfectly well, no problems.
Kevey
07-05-2007, 06:04 PM
Doesn't appear when viewing Source code online, and the image is missing from the web page, and it's happening with both IE7 and Firefox.
Do you have a link of this problem page? Is this a free hosting service?
It's the code itself which is missing from the uploaded page:
http://www.alexanderhutchison.com
In my files, the code for the top banner is right there after <body> <br>, before the tab menu ... but once online, it's gone!
I'm even viewing the page code within the FTP client, with "View as text file" option, and it's there before upload.
The file is HTML validated as well ... baffling.
No, standard paid-for hosting service.
tracknut
07-05-2007, 06:15 PM
Have you actually gone out to the server and validated the creation date of the file after you've pushed it out there? Maybe the push itself is failing?
Dave
I've changed various other bits of the code on that page, to see if they upload OK, and they do ... it's just this one bit missing every time.
Tried putting it on the same line as the <br>, to see if it was the line itself, but it's just the <img src="images/banner.gif" alt="Arnold Lane" border="0" width="610" height="150" vspace="2"> bit.
In 7 years of web authoring I've never seen anything like this.
Kevey
07-05-2007, 06:30 PM
I see the text you are talking about before the tab menu...maybe you need to try it from another computer. That is a weird problem. Here's a cut/paste when i view your source: <body>
<br>
<img src="images/banner.gif" alt="Arnold Lane" border="0" width="610" height="150" vspace="2">
<ul id="tabmenu">
For example, I enclosed the banner code between <p> and </p>, and uploaded the page again ...
the <p> and </p> were there, but the banner code wasn't between them.
Kevey
07-05-2007, 06:33 PM
This is the banner in question, right? If so, I see it and the html for it.
I see the text you are talking about before the tab menu
Ah! So I'm not going nuts! Thanks ...
Something very weird has happened then ... wonder why it doesn't register
at all (and display wrongly as a result) in my browser?
Kevey
07-05-2007, 06:36 PM
Maybe you need a good old reboot?
Reckon so! Thanks, I'll give it a go.
ray326
07-05-2007, 10:16 PM
Your local firewall is stripping the banner mark up when it is received from a server rather than browsed locally. I think Norton/Symantec does that but I don't know since I don't use them.
Major Payne
07-06-2007, 12:33 AM
If he is using Norton, then that is the problem. My sister uses Norton on her PC and it "stripped" my banner out and was driving me crazy until I checked the ads list. Had to remove the words "banner", "ban" and other related words to get my banner to display on her PC. Don't remember if it was because I had named the image banner.jpg or not since I have since changed a few things. At any rate, the ads black list did contain lots of possible ad related words which can cause this problem. I would try changing the image name and html code to reflect new name to see if this works first.
Ron
ray326
07-06-2007, 03:44 PM
Some will strip them base on common banner image sizes too. It's really a stupid thing to do outside the browser IMHO.