chrisse
Senior Member
Life is about the choices we make
Posts: 196
|
Post by chrisse on Jul 7, 2008 9:57:11 GMT -5
Hi All - I was wondering if anyone can help me identify an error on my webpage. When I download my page through Internet Explorer I get "done BUT with error on page" and when I download through Firefox there is no error message. I can't find the error and I am wondering if anyone else has experienced this discrepancy between I.E and Firefox and what can I do ? Chrisse
|
|
|
Post by troyzone on Jul 8, 2008 18:36:57 GMT -5
Hi Chrisse,
Internet Explorer has a feature where it indicates to you when a page contains errors in its code. Double-clicking on the error indicator in the status bar at the bottom usually brings up a box with more details on the error. Firefox doesn't seem to have this feature, or at least it is not enabled by default. Whether Firefox tells you about errors or not, there are likely errors present in the source code if IE indicates that there is.
I checked your page in IE and double-clicked on the error indicator, where it gives a line number for the error. These line numbers don't always match up exactly in HTML editors depending on whether it reformats the code and so forth, but they can at least place you relatively close to the problem area of the code, so I was able to quickly find the source of the problem from this info.
In your page's source code, you have a huge list of keywords inside the <head> section following this line:
<meta name="keywords" content="administrative work from home
There are many lines of keywords following the above, then eventually you would encounter the following keyword phrases:
work from home uk work from home work "administrative work from home" "best based businesses online job way to earn money at jobs"
As you'll notice in the above sample of 4 lines, the first two have no quotes around them and the second two lines do have quotes. It is at this point that you started including quotes around each keyword phrase, and this is what is causing your error. This is because the original meta tag has a content attribute that expects all of your keywords contained in a single set of quotes, like this:
content="xxx, xxx, xxx"
or
content="xxx, xxx, xxx"
The following keyword meta tag comes from the original TOPS page and can serve as an example of how to format this tag:
<meta name="keywords" content="work at home,work at home ideas,work at home opportunities,work from home,working from home">
You'll notice that in addition to the content attribute's value being enclosed in a single set of quotes, each keyword or keyword phrase is also separated by a comma. The end of the <meta> tag is reached when you encounter the closing > symbol. Everything in between < and > is considered to be part of that same tag, and the content attribute should only contain an opening and a closing quotation mark. There should not be multiple sets of quotes inside them around individual keyword phrases...instead, they should be separated by commas.
You will need to go through and reformat your keyword meta tag to follow the format given by the above example in order to correct the error that your IE browser is detecting.
I also noticed that in addition to quotes appearing around keyword phrases partway through the list, it later changes again to use square brackets [ ]. This should be corrected as well. Perhaps you copied and pasted this keyword list from another page or source that included these quotes or square brackets.
About three lines below where the above-mentioned keywords meta tag ends:
[want wor">
There is another line that starts with:
<meta name="keywords" content="
Then there is a whole list of keywords on a single line (which is well over 5300 characters long according to my editor), ending with the following:
,"money for beginners"">
There appear to be commas separating keywords in this meta tag, but again, the extra quotes are confusing the browser. You also only really need one keywords meta tag, so it would be best to include all of your keywords in one properly formatted keywords meta tag to keep your code as neat and as organized as possible.
It is also possible that you may encounter other errors that show up after fixing these issues, but this is what I noticed amiss in the above-mentioned section of code based on the current error indicator in IE. Hope this helps.
Troy
|
|
chrisse
Senior Member
Life is about the choices we make
Posts: 196
|
Post by chrisse on Jul 11, 2008 8:01:28 GMT -5
;DHI troy many thanks for your well followed instructions and the problem now seems fixed. cheers....chris
|
|
chrisse
Senior Member
Life is about the choices we make
Posts: 196
|
Post by chrisse on Jul 12, 2008 8:48:41 GMT -5
Hi Troy - Sorry I thought I had fixed the page error problem but it appears I was wrong I still have a page error showing when I download referring to line 514 I can't work this one out - hope you can help me again with your expertise .
Thanks heaps - Chrisse
|
|
|
Post by troyzone on Jul 13, 2008 13:16:40 GMT -5
Hi Chrisse, I could not spot your error right away, so I used the following site which analyzes your page's code: www.netmechanic.com/toolbox/power_user.htmIt highlights potential errors in red. Usually the "unterminated string constant" error refers to an extra or missing single or double quotation mark, as strings of characters that have an opening quote need to have matching closing quote at the end of them. I'm not sure whether the following is the exact cause of your error, but I noticed the following in your code: class="style106"" Notice there is an extra double quote " at the end of the above string. Search for class="style106"" in your code and delete the extra quote at the end and see if that helps. You might want to make use of the above-mentioned site to help you locate any additional errors that you may have. It turned up several other issues with your code as well that don't necessarily set off the error indicator in IE, but nonetheless are coding issues that should be corrected. There are many other useful HTML analyzer and validator sites available online as well in addition to the one above. Hope this helps. Troy
|
|
Michael J
Senior Member
Success comes with knowledge. Follow the leaders who have the knowledge and success will be yours.
Posts: 163
|
Post by Michael J on Jul 15, 2008 9:00:15 GMT -5
Troy,
Thanks for the link to netmechanic! It's a great useful tool. While I wasn't having any major error problems, the tool was very useful in helping me clean up my code and I also liked the info it provides about image sizing and load times.
I don't know how you have the time to find all of these kind of things as it always sounds like you're so busy!
Your help here is always much appreciated so keep the useful links coming our way and have an E on me!
Michael J
|
|
chrisse
Senior Member
Life is about the choices we make
Posts: 196
|
Post by chrisse on Jul 18, 2008 2:52:43 GMT -5
hi troy, thank you again, i found that error and fixed. I also want to thank you for the link you sent, very useful. cheers....chris
|
|