Bill,

    Did you name your submit button "submit"  ?
I came across this problem as well.
It appears that you cannot name an object on your screen the same thing
as
a javascript action, for example, submit().
When I renamed by submit button to "btnSubmit" it worked fine.

Pete


Bill Pfeiffer wrote:

> 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 -----
>      From: Michelle Popovits
>      To: [EMAIL PROTECTED]
>      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"
>      OnClick="document.forms[0].submit();">
>      </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"
>      
>OnClick="document.forms[0].event.value='SELECT_COURSE';document.forms[0].submit();">
>
>      </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"
>      
>OnClick="document.forms[0].event.value='SELECT_COURSE';document.forms[0].submit();">
>
>      </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"
>      OnClick="document.forms[1].event.value='SELECT_COURSE';f1.submit();">
>
>      </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
>
begin:vcard 
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/logo/irista.gif";><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain
adr:;;;;;;
version:2.1
end:vcard

Reply via email to