Michelle,
 
I had the exact same issue in IE and it had to do with having an actual submit or reset button as part of the form.  For some reason, If I had a submit button on the form, performing a submit in javascript yeilded the error that you see.  When I remove the submit button (or reset button), the error goes away.  Don't know why this is.
 
HTH,
 
Bill Pfeiffer
 
 
----- Original Message -----
Sent: Wednesday, June 20, 2001 5:19 PM
Subject: unable to programmatically perform a submit

Hi,
 
I am trying to get an image map working that does a submit.
The image map itself works.
However, when I click on the image area it complains when trying to execute the submit.
 
Error:  object doesn't support this property or method.
 
I have tried just performing a submit without the event assignment, like so:
<MAP NAME="MyMap">
  <AREA SHAPE="Rect" NOHREF COORDS="82,2 163,23" >
</MAP>

 
This works in my non-struts form version.
 
 
Here is the html output:
 
<MAP NAME="MyMap">
  <AREA SHAPE="Rect" NOHREF COORDS="82,2 163,23" >
</MAP>
 
<img src="/LAPS1/VirtualClassroomWAR/images/tab1a.gif" border="0" usemap="#MyMap">
struts version
 
<strutshtml:html>
....
<strutshtml:form action="editPersonalInfo.do" name="personalInfoForm" type="com.bmo.ifl.laps.forms.PersonalInfoForm">
....
<MAP NAME="MyMap">
  <AREA SHAPE="Rect" NOHREF COORDS="82,2 163,23" >
</MAP>
 
<strutshtml:img usemap="#MyMap"  pageKey="page.editPersonalInfo.tabImage" border="0" />
...
</strutshtml:form>
</strutshtml:html>
 
 
non-struts version - this works
 
<form id=f1>
<MAP NAME="MyMap2">
  <AREA SHAPE="Rect" NOHREF COORDS="82,2 163,23" >
</MAP>
 

<img USEMAP="#MyMap2" SRC="<%= request.getContextPath() %>/images/tab1a.gif" BORDER="0" >
<input type=text name=event value=UPDATE_PERSONAL_INFO>
 
</form>
 
I don't believe the image map is the problem. 
I think that there is just some reason why it will not except a submit() programmatically.
 
Thanks,
Michelle

Reply via email to