iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Community > The Café

Reply
 
LinkBack Thread Tools
Old July 1st, 2009, 03:59 PM   #1
New Member
 

Join Date: Jun 2009
Location: Vancouver
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masx is on a distinguished road
mysterious code in my page source

Hi,
I have two computers, both trying to access the same web site - http://askauntiejane.com - One works just fine, the other gives me a 406 error code and says 'not acceptable' . So I looked at the Page Source under Views and compared them on both machines - The one that accesses the page has simply the html code that I see on Front Page code view, BUT the computer that WON'T access the page has this code under the Page Source View - - -
<!DOCTYPE html PUBLIC "-//w3C//DTD XHTML 1.0 Transitional//EN" "http://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

The computer that DOES access the page has nothing before the <head> tag.

So how this this gibberish get into my computer and added to this web page only on this computer???? Is this spyware? Malicious code? I never even heard of w3c Systems before - I can see this code on View - Page Source - but cannot remove it??
Help if you can.
Thanks
masx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 2nd, 2009, 06:37 AM   #2
WebForumz Mod Badge
 
GalaxyTramp's Avatar
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: mysterious code in my page source

Quote:
Originally Posted by masx View Post
<!DOCTYPE html PUBLIC "-//w3C//DTD XHTML 1.0 Transitional//EN" "http://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
This doctype declaration basically tells the browser what version of markup language the page has been written in. Your site has been built using Microsoft Frontpage 6.0 which has omited this information, as a result this will cause some browsers to run in what is known as "quirks mode" which is probably the cause of the error.

I suspect that the computers are running different types/versions of web browser.

w3.org is the organisation responsible for the standards used for website coding, nothing sinister about it.

Take a look here for more information: http://www.w3schools.com/tags/tag_DOCTYPE.asp

Adding the correct doctype declaration to the page should make the problem go away.

Regards

GT
__________________
Never be afraid to attempt something new.
Always remember that amateurs built the Ark.
Professionals built the Titanic!!

GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 2nd, 2009, 06:46 PM   #3
New Member
 

Join Date: Jun 2009
Location: Vancouver
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masx is on a distinguished road
Re: mysterious code in my page source

Thank you for helping, I at least now have a direction to go in. I will look into your comments.
Of course I don't know what the correct Doctype info would be??? When I look at the code for the index page in Front Page 2003, it only has the first tag as - <html> then <head> etc. But when I try to connect to the page I get that "Not Acceptable 406" error and then I look at the View - Page Source and all that other code is there ahead of the HTML tag which doesn't show anywhere except on the Page Source. Will there be a doctype declaration on the page somewhere that I can change?
I am also wondering how that code even gets in there as I never put any of it there?

Last edited by masx; July 2nd, 2009 at 07:17 PM..
masx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 2nd, 2009, 07:33 PM   #4
New Member
 

Join Date: Jun 2009
Location: Vancouver
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masx is on a distinguished road
Re: mysterious code in my page source

So I tried changing that code or putting in a new doctype code to no avail. My two websites fluctuate on one computer and just get the same 406 Not Acceptable on the other. Both these websites worked fine until I installed an embedded forums code into a different page. However I can't see why installing that on a different page would influence the website form loading at all, much less have new coding in the Index page? I have tried disabling the forums page but that had no effect.
masx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 4th, 2009, 01:42 PM   #5
WebForumz Mod Badge
 
GalaxyTramp's Avatar
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: mysterious code in my page source

I think your problem may lie with references to this url in the head of your doc:

http://static.addtoany.com/


Try removing the masses of code from the head relating to this and try again.

Regards

GT
__________________
Never be afraid to attempt something new.
Always remember that amateurs built the Ark.
Professionals built the Titanic!!

GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 13th, 2009, 01:03 PM   #6
New Member
 

Join Date: Jun 2009
Location: Vancouver
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masx is on a distinguished road
Re: mysterious code in my page source

When I look at my document in Front Page 2003, I do not see ANY code ahead of my html tag. However when I attempt to open the site in a browser, I get the 403 or 406 error saying Not Acceptable - and then I look at View and the Source I see 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>
Do I assume the host of my website puts it there? Or what program puts it there?
I am using Front Page 2003 and sometimes trying to go to Expressions Web to do things. And I am using browsers Firefox AND Internet Explorer, and BOTH computers are using the exact same version of browsers. And I did try removing any code I see there, but it doesn't show????

It even says in there that my title of the page is Not Acceptable? However does that get there???

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>406 Not Acceptable</title>
<style type="text/css">
<!--
body {

and this is what I see in Front Page 2003 when I look at it - - -

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>caterwauls</title>
<meta name="description" content="index start">
<style>

Last edited by masx; July 13th, 2009 at 01:09 PM..
masx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 13th, 2009, 01:23 PM   #7
WebForumz Mod Badge
 
GalaxyTramp's Avatar
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: mysterious code in my page source

HTML 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>406 Not Acceptable</title>
<style type="text/css">
<!--
body {
What you are seeing is the source code for the default 406 error page. This is generated by your webserver. YOUR page is not being displayed at all so you will not see any of the code associated with it.

As previously mentioned, removing the references to http://static.addtoany.com/ from your header would be a good start.

Regards

GT
__________________
Never be afraid to attempt something new.
Always remember that amateurs built the Ark.
Professionals built the Titanic!!

GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 17th, 2009, 01:33 PM   #8
s44
New Member
 

Join Date: Jul 2009
Location: USA
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 s44 is on a distinguished road
Re: mysterious code in my page source

Like others said, the DOCTYPE tag is nothing to be afraid of and doesn't do anything harmful at all. And W3C is short for the World Wide Web Consortium, who determine web standards for HTML/XHTML and stuff like that.
s44 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 5th, 2009, 05:21 AM   #9
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Re: mysterious code in my page source

I think your problem may lie with the use of front-page .... try to move away from it, and learn about what a doc type declaration means, and which one you should use for your level of coding expertise.
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2009, 11:37 AM   #10
New Member
 

Join Date: Jun 2009
Location: Vancouver
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 masx is on a distinguished road
Re: mysterious code in my page source

Hi, thanks to all who responded. My sites are going fine now. I still have no DocType declaration etc. But my server added some kind of firewall to some websites and it screwed them all up until they took it off. (Mod-security)
masx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
code error , html , spyware , w3c systems


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Source code for html girishpdewangan HTML, XHTML and CSS 3 August 1st, 2008 10:18 AM
getting source code of a page mikedikta JavaScript 2 October 14th, 2007 03:39 PM
Can somebody give me the code to hide the source code? renren JavaScript 7 March 7th, 2006 09:27 AM
Viewing source code?? autumn_whispers2me HTML, XHTML and CSS 4 February 14th, 2005 02:40 PM
need help-source code ayus_82 .NET 1 September 20th, 2004 04:48 AM


Search Engine Optimization by vBSEO 3.2.0 RC8