[Javascript] Disabling the image submit button -- aspx
David Lovering
dlovering at gazos.com
Thu Nov 13 11:05:26 CST 2003
Just a wild gas guess -- maybe if you put a semi-colon after the line
> var ProceedButton = document.getElementById('ImageButton1')
things might be different.
-- Dave Lovering
----- Original Message -----
From: "Guy Platt" <guy at webbnet.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Thursday, November 13, 2003 7:00 AM
Subject: [Javascript] Disabling the image submit button -- aspx
> Hi,
>
> I'm working with an aspx imagebutton and want to disable the button
> after it has been clicked once. I have the following (not working) code.
>
> Anyone got experience with aspx imagebuttons?
>
> many thanks
> Guy
>
>
>
> <script LANGUAGE="JavaScript">
> // var submitted=false
> function submitonce(theform)
> {
> // if(submitted){return false}
> var ProceedButton = document.getElementById('ImageButton1')
> ProceedButton.disabled = true;
> //submitted=true;
> return (true);
> }
> </script>
> </HEAD>
>
> <body>
> <form id="billing" method="post" runat="server"
> onSubmit="return submitonce(this)">
>
> .
> .
> .
> <asp:ImageButton Runat='server' ImageUrl="../images/fortsatt.gif"
> OnClick='SubmitForm' id='ImageButton1' />
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list