struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: form submit() method is not recognized.
Date Sun, 18 Aug 2002 07:10:01 GMT
Oops. Seems Olga already pointed this one out!

-----Original Message-----
From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
Sent: Sunday, August 18, 2002 15:08
To: Struts Users Mailing List
Subject: RE: form submit() method is not recognized.


I had this the other day.
I tracked it down to having a field (button actually) on the form whose name
was submit. This seems to override the submit method in the form object with
a field object. So instead of submit being a property of form object with
datatype of function it has been changed to a property named submit with
datatype of object)
(In JavaScript there isnt much differentiation between function objects and
other objects. As soon as I renamed that field the method worked again.)

-----Original Message-----
From: Ganesh Puri [mailto:gpuri@gpuri.com]
Sent: Sunday, August 18, 2002 06:08
To: Struts Users Mailing List
Subject: Re: form submit() method is not recognized.


I am exactly having the same problem ...
and looking for the solution ...

----- Original Message -----
From: "Olga Agady" <oagady@yahoo.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Saturday, August 17, 2002 4:57 PM
Subject: form submit() method is not recognized.


> Hello,
>
> I am using struts 1.0.2. I experience a wierd problem:
> When I submit the form after a user selects an item
> from a drop-down select box:
>
> <html:select property="country"
> onchange="document.forms[0].submit()">,
>
> I get run-time error that "Object doesn't support a
> property or a method". I tried to re-write the code
> with different variations like:
>
> <html:select property="country"
> onchange="submitForm()">,
>
> <SCRIPT>
> function submitForm(){
> document.forms[0].submit();
> }
> </SCRIPT>
>
> Whatever I do, when the script starts running the line
> document.forms[0].submit(), I get the same error.
> Looks like submit() method is not recognized. Did
> someone have a similar problem?
>
>
> Thanks,
> Olga
>
>
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message