Forum Moderators: open

Message Too Old, No Replies

Object Expected Error

         

DayZee

4:26 pm on Oct 6, 2008 (gmt 0)

10+ Year Member



I am trying to add a mortgage calculator (using a pre-written code that I obtained) and when I load it onto the site it gives 2 line error messages.

Line 89 and Line 126 and all is says is "Object Expected" I am totally clueless on what to do but here are the 2 lines of code. Am i missing something or is something out of place?

Here is line 89
<body bgcolor="#FFFF99" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" onload="preloadImages();">

And here is line 126
<td bgcolor="#aaeeaa" align="center"><input type="button" onClick="showpay()" value="Calculate"></td>

Not sure how to get help without posting the URL but any assistance would be greatly appreciated!

astupidname

1:16 am on Oct 8, 2008 (gmt 0)

10+ Year Member



It is hard to tell you exactly the reason for the error, as this is insufficient information. The error does come from a problem with the javascript. "Object Expected" could mean a number of things, such as improperly named function or variable or they are not even there, etc. If you could post more code from your page (and remove all unnecessary stuff to keep it as short as possible) we would like to see all the javascript, and perhaps the html too, that pertains to the "preloadImages()" and "showpay()" functions.