Alex,

Do you have a button called submit on the page too?  Note - the struts
html:submit will by default be called that.  If so, javascript gets confused...

Dave





"Alex Colic" <[EMAIL PROTECTED]> on 08/30/2001
04:35:00 PM

Please respond to [EMAIL PROTECTED]

To:   "Struts" <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Any idea why this form is not being submitted.




Hi I have a form that has one text box tied to a form bean 'entity' and a
couple of text boxes that the user can input search criteria and bring up a
search page. The problem I am having is the form page is not being
submitted.

If they hit a search button I call a function and submit the form.

A snippet of my page is:


  <html:form method="POST" action="searchEntity.do">
     <html:text property="entity.entityNumber" size="16" maxlength="16"/>
     <INPUT type="text" name="txtSearchEntityName"
onBlur="doSearch('Name')"></TD>
  <html:form>

<SCRIPT Language="Javascript1.2">
funciton doSearch(criteria)
{
     ....
     alert(entity.txtSearchEntityName.value);
     entity.submit();//error line
}

</Script>

When I tab out of the search box, I keep getting an error that this object
does not support this method or property yet I can print out the text in the
search text box.

I can't seem to find the error.

Any help is appreciated.

Alex








Reply via email to