View Full Version : What am I doing wrong?
05-20-2010, 03:55 PM
Hello all...I went and manually checked all my php files but everytime I load my website gcloan . com when all the content loads; on the bottom left of the browser the "error yellow exclamation mark" and when I click on it for more information to find out the specific error it states the following as listed below:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; AskTB5.6)
Timestamp: Thu, 20 May 2010 13:45:08 UTC
Message: Object expected
Message: Object expected
I checked all the codes but I don't know what I am doing wrong? I tried to debug it...check the W3CMarkup Validator but I seem to be stuck...can anyone help me on this or give any insight on what I should do?
05-20-2010, 04:11 PM
Hm, Firefox doesn’t come up with erros (in the console at least) but you do have errors in your code. The first one I’m getting is:
Line 21, Column 18: document type does not allow element "DIV" here; missing one of "TH", "TD" start-tag
<div id="top_seo"><td align="center" class="top_seo">Home mortgage lenders &…
You have placed a div as child of a tr but that’s not allowed. Only td can be direct children of tr and any element must be inside the td for that matter. The other errors relate to that. See if fixing thos solves the issue.
And P. S.: I’m obliged by the law of good conscience to inform you that tables for layout are stupid (http://www.hotdesign.com/seybold/) and should not be used in the manner you are using them. Instead, you should use semantic HTML (http://en.wikipedia.org/wiki/Semantic_HTML) and style it entirely with CSS.
05-20-2010, 08:22 PM
I have about 3 ideas in my brain about your error situation.
1) I use a little freeware coding software that also has a validate function that allows me to find most errors before they get uploaded. If it is cricket to mention it, it is CSE Validator Lite. They also have more robust versions available for a fee. It has saved me a lot of time. (by the way, it too shows the error that the other commenter mentioned.)
2) When I run your code through the w3c validator, it shows 34 errors. Once I get to the validator, I usually try to troubleshoot error by error. As you do so, remember that some of the errors might be in your main page and some might be in your included files.
3) You could also choose the validator option of "Clean up markup with html tidy". You could then make a new test file and paste the tidied markup in it and with that new name, look at your new page and see if it works. DO NOT OVERWRITE your original file.
BEWARE: If all is tested out and works ok, you might be tempted to go ahead and use the tidied output in your original page. DO NOT DO THIS. The validator - appropriately - validates the page with all the various included files already pulled into it. And the tidied file is that generated page. You want to keep your coding that actually includes the files, so DO NOT overwrite your main page.
Once you make sure that html tidied it in such a way so that it all works, you then can go through the "tidied" coding side by side with your coding and see how they corrected the errors. Some of the corrected errors might be in your main page and some in your included documents. You are most familiar with your content so you should be able to trouble shoot that.
added: I validate frequently as I "correct" coding as a fix early on will often cascade down and solve a lot of other errors.
Let me know if any of these techniques worked for you. Also will be interested if hearing if anyone has a shortcut method to do this.
Again, I am a rank amateur and you can weight my advice accordingly.
05-21-2010, 02:11 AM
Looks like a Java error..looking for an object. It's probably that sliding thing, I don't get the error in FF. Your going to flip but go back to where you got your Java codes for that thing, recopy and paste it. I bet you accidentally wiped something out.
PS, I think your page looks great! A few things show up shifted in FF, but the tables don't look stupid.
Ok, just checked in IE and it's absolutely a Java error, that's what's on line 42.
05-21-2010, 02:39 AM
Looks like a Java error..looking for an object. What's the website?
The original poster has mentioned the domain name of their site in the first sentence, by the way.
05-21-2010, 03:12 AM
Well this is what's on line 42
<div id="top_menu"><td class="top_menuimage" align="middle"><a href="/"><img id="home" onMouseOver="MM_swapImage('home','','images/images_1/over_04.gif',1)" onMouseOut="MM_swapImgRestore()" alt="home" src="images/images_1/menu_04.gif" border="0"></a><a href="mortgage_center.php"><img id="mortgage_center" onMouseOver="MM_swapImage('mortgage_center','','images/images_1/over_06.gif',1)" onMouseOut="MM_swapImgRestore()" alt="mortgage center" src="images/images_1/menu_06.gif" border="0" width="129" height="37"></a><a href="rates.php"><img id="current_rates" onMouseOver="MM_swapImage('current_rates','','images/images_1/over_07.gif',1)" onMouseOut="MM_swapImgRestore()" alt="current rates" src="images/images_1/menu_07.gif" border="0" width="105" height="37"></a><a href="real_estate.php"><img id="real_estate_center" onMouseOver="MM_swapImage('real_estate_center','','images/images_1/over_08.gif',1)" onMouseOut="MM_swapImgRestore()" alt="real_estate_center" src="images/images_1/menu_08.gif" border="0" width="133" height="37"></a><a href="apply.php"><img id="apply" onMouseOver="MM_swapImage('apply','','images/images_1/over_09.gif',1)" onMouseOut="MM_swapImgRestore()" alt="apply" src="images/images_1/menu_09.gif" border="0" width="63" height="37"></a><a href="resources.php"><img id="resources" onMouseOver="MM_swapImage('resources','','images/images_1/over_10.gif',1)" onMouseOut="MM_swapImgRestore()" alt="resources" src="images/images_1/menu_10.gif" border="0" width="85" height="37"></a><a href="company.php"><img id="company" onMouseOver="MM_swapImage('company','','images/images_1/over_11.gif',1)" onMouseOut="MM_swapImgRestore()" alt="company" src="images/images_1/menu_11.gif" border="0" width="81" height="37"></a></td></div></tr>
05-21-2010, 07:25 PM
I got rid of those onMouseover/onMouseout tags and it seems like to fixed that annoying bug. :)
It is weird...you mention there are other errors but when I run the browser compatibility test on Dreamweaver CS5 as well as run the W3C Markup Validator....it gives me no errors or the HTML tidy won't clean up the error the validator gives but on Dreamweaver CS5 I don't see any browser compatibility problems and when I run the site, I don't see any errors or anything like that....why is that?
Thanks again for your help and I will try to solve the other little problems like you mentioned but again, for some reason I don't seem to be running into the errors you mentioned anywhere including checking for errors in Dreamweaver CS5...
05-22-2010, 01:28 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.