[Javascript] Disabling the image submit button -- aspx

Guy Platt guy at webbnet.com
Fri Nov 14 02:05:35 CST 2003


Dave,

Thanks for taking the trouble to look at my code and offering your 
replacement code.

When I run this through the JS debugger in Mozilla 1.4 I see that the 
code is executing fine but is not producing the desired results. The two 
problems I have are: 

1) the image used for the button does not change as a result of the 
disable. 
2) The ASPX code is never called, almost as though the form is not being 
submitted. Would something in the JS code be stopping the form from 
being submitted the first time?

regards
 Guy


David T. Lovering penned the following on 11/14/2003 12:23 AM:

>Hmmm... maybe something like this would work better --
>
><script LANGUAGE="JavaScript">
>  
>
> <snip>
>
>>     eval("ProceedButton.disabled = 'true'");
>>     submitted = 'true';
>>     return true;
>>    
>>
>     <snip>
>
>I haven't tested it with any rigor, but this looks better and conforms somewhat to the
>syntax issues etc.
>
>-- Dave Lovering
>  
>
>  
>



More information about the Javascript mailing list