struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Moberts" <stuiter...@hotmail.com>
Subject Re: document.testbean.submit is not a function
Date Thu, 01 Jan 1970 00:00:00 GMT

Hello John

>From: john.miaso@digitools.com (John Miaso)
>Reply-To: struts-user@jakarta.apache.org
>To: struts-user@jakarta.apache.org
>Subject: document.testbean.submit is not a function
>Date: Wed, 09 May 2001 08:27:24 -0600
>
>I've modified the html-select.jsp example to include the script:
>
><SCRIPT>
>function cbChanged() { document.testbean.cbSearch.value = "Search"
>                        document.testbean.submit()
>}
></SCRIPT>
>
>I'm setting a hidden property so that I can fill a select elements options 
>in
>the Action peroform method based on the selection made in another select
>element. When I do this I get the JSP error: document.testbean.submit is 
>not a
>function.

Isn't that a JavaScript error?

I got this error when I tried to submit a form using a link. I removed all 
the regular submitbuttons and then it worked.

>I get the same result if I try to send reset rather than submit. Is 
>Javascript
>unaware of the submit button property? Is there a better way to approach 
>this?
>
>John Miaso
>

Grtz Bart
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message