FYI, I didn't see anything wrong with the Javascript on that submit
button, so I threw together a quick test page, just straight HTML, and
sure enough, no error occurs for me (IE6)... my guess is that something
else about the page is interacting in an unexpected way, or just the fact
that your using the Struts HTML tags (although I don't see anything
suspicious about what your doing)... can you post the source for the
entire page?

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Mon, December 19, 2005 9:21 am, Martin Gainty said:
> Stanislav-
> You can set the items property to disabled in javascript..take a look at
> http://forums.devshed.com/java-help-9/disabled-submit-button-returns-null-206877.html
> Sok szerencset,
> Martin-
> ----- Original Message -----
> From: "Stanislav" <[EMAIL PROTECTED]>
> To: <user@struts.apache.org>
> Sent: Monday, December 19, 2005 8:26 AM
> Subject: Re: submit double click, js and html:submit
>
>
>> Details: Error: Object doesn't support this property or method
>>
>> ----- Original Message Follows -----
>>> Well, error is "Error on Page" (left bottom corner). Details: something
>>> about wrong method.....
>>>
>>>
>>> > "But when i use this code, after clicking on submit button i get
>>> error
>>> > on page message in IE."
>>> >
>>> > Can you throw us a bone here? What is the error?
>>> >
>>> > Larry
>>> >
>>> >
>>> > On 12/19/05, Amol Yadwadkar <[EMAIL PROTECTED]> wrote:
>>> > > U may have to use validToken method provided by struts
>>> > >
>>> > > -----Original Message-----
>>> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>> > > Sent: Monday, December 19, 2005 6:29 PM
>>> > > To: user@struts.apache.org
>>> > > Subject: submit double click, js and html:submit
>>> > >
>>> > > I want to prevent user from double submiting data. Searching the
>>> > > internet i found this js code:
>>> > > <input type="submit" value="Submit"
>>> > > onclick="this.disabled=true;this.form.submit();" />
>>> > >
>>> > > Because i use html:submit my code is:
>>> > >
>>> > > <html:submit property="submit" value="Some name"
>>> styleClass="Button"
>>> > > style="CURSOR: hand"
>>> > > onclick="this.disabled=true;this.form.submit();"/>
>>> > >
>>> > > But when i use this code, after clicking on submit button i get
>>> error on
>>> > > page message in IE.
>>> > >
>>> > > my question is: how can i prevent user from double clicking submit
>>> > > button and still user html:submit
>>> > > code?
>>> > >
>>> > > Tnx
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>>> > >
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>>> > >
>>> > >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to