Hi,
I've found that the easier solution to this problem is
that any button that could perform a submit operation
should be wrapped by a form and thus be the unique
submit button of the form. Then add the code:
<input name="search" id="search" type="image"
onClick="this.disabled=true;document.forms[0].submit()"
src="images/search.gif" border="0">
where 'forms[0]' should be changed to whatever your
form number is.
In case you must have more than one submit button in
the same form I came with a similar solution. If
someone is interested... just ask.
Hope it helps,
--- Javier Sanchez <[EMAIL PROTECTED]> wrote:
> Actually, that problem is not present in Firefox.
> Try it. However,
> MS IE has this annoying behaviour.
>
> > WHile I can take care of preventing double submits
> on the server, ...
>
> I am wondering how can you avoid double submits on
> the server side.
> Are you modifying Tapestry's Engine?
>
> JAVIER SANCHEZ.
>
> On 5/30/05, phillip rhodes <[EMAIL PROTECTED]>
> wrote:
> > I figured that...
> >
> > But I am hoping that a magician already performed
> that
> > trick and could give me a few pointers.
> >
> >
> > --- Geoff Longman <[EMAIL PROTECTED]> wrote:
> > > you need to do some javascript magic on the
> client
> > > side to prevent resubmission
> > >
> > > Geoff
> > >
> > > On 5/30/05, phillip rhodes <[EMAIL PROTECTED]>
> > > wrote:
> > > > When someone submits the "Place Order" on the
> > > shopping
> > > > cart confirmation page to place an order, I
> would
> > > like
> > > > to disable the submit button (client side) so
> as
> > > to
> > > > prevent resubmissions of the form. WHile I
> can
> > > take
> > > > care of preventing double submits on the
> server,
> > > the
> > > > person who double submits would see a "Double
> > > submit
> > > > error page" and not the order receipt page.
> > > >
> > > > I see that the submit component has a disabled
> > > > property, but this is something that is set on
> the
> > > > server side and is not suitable for my needs.
> > > >
> > > > Thanks for your thoughts.
> > > > Anyone ready for the most cool cart ever
> written
> > > and
> > > > in tapestry;)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > 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]
>
>
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]