Forum Moderators: open

Message Too Old, No Replies

IE6 whats this problem

object expected.

         

gecko001

11:10 pm on Apr 4, 2005 (gmt 0)

10+ Year Member



I have a simple page with a simple form in it.
the page works in Firefox.
ie6 sometimes shows whole page and othertimes shows half of it. it shows error message object expected.

code as follows
<edit> sorry may have broken TOS </edit>

this is the problem part
<div id="sub">

<p class="sub">Subscribe
to the XXXXXX mailing list</p>
<form method="post" action="http://www.XXXXXX.co.nz/lists/?p=subscribe" name="subscribeform" target="subscribe">
<input class="two" name="htmlemail" value="0" type="hidden">
<p> <input class="two" name="email" type="text" value="Email"></p>
<script language="Javascript" type="text/javascript">addFieldToCheck("email","Email");</script>

<p><input class="two" name="attribute2" type="text" value="First"></p><script language="Javascript" type="text/javascript">addFieldToCheck("attribute2","First");</script>
<p><input class="two" name="attribute3" type="text"value="Last"></p><script language="Javascript" type="text/javascript">addFieldToCheck("attribute3","Last Name");</script>

<p><input name="subscribe" value="Subscribe" onclick="return checkform();" type="submit"></p>

<input name="list[2]" value="signup" type="hidden"><input name="listname[2]" value="Somantic E-list" type="hidden">
</form>
<p><a href="http://www.XXXXXXX.co.nz/lists/?p=unsubscribe">Unsubscribe</a></p>

</div>

am i really stupid?
Please help
cheers
Gecko

Span

11:25 pm on Apr 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay Gecko,
first, there is a second page <head> in your #leftcontent div. That shouldn't be there (saw your post before you edited it).

And the script error.. the JavaScript in your form is calling a function (addFieldToCheck) but that part of the JS (should be in the head of your page or in an external included file) isn't there..

gecko001

11:35 pm on Apr 4, 2005 (gmt 0)

10+ Year Member



Thanks Span,
I am stupid
:-)

The left div was a page include to have a navigation menu run down left side.

thanks for wise-ing me up to the jave script....at least i know where to start looking now.thanks again.
gecko