MapTools.org

[Chameleon] multiple submit problem in IE

Paul Spencer spencer@dmsolutions.ca
Thu, 22 Jan 2004 10:32:15 -0500
Thanks Bart.  I am currently thinking of having one centralized submit 
function provided by the chameleon core and all widgets will be modified 
to go through that one function (probably CWCSubmitForm( oForm ))

That function will probably include something very much like the code 
you have below.

Cheers,

Paul

bartvde@xs4all.nl wrote:

> Hi Paul, list,
> 
> we have made some changes in Chameleon to prevent the multiple submit
> crash of Chameleon in Internet Explorer. The main problem was the form
> could be submitted when the page was not fully loaded.
> 
> Basically, what we have done is the following:
> 
> create a mySubmit() function in the HTML template:
> 
> var bBusy = true;
> 
> function mySubmit()
> {
>   if (! bBusy)
>   {
>     bBusy = true;
>     document.forms[0].submit();
>   }
> }
> 
> on the OnLoad function of the body we set bBusy to false.
> 
> In all the widgets we have replaced document.forms[0].submit() with a call
> to mySubmit().
> 
> Hopefully you can implement this in a more generic way during the
> Javascript redesign for Chameleon 2.0.
> 
> Best regards,
> Bart
> _______________________________________________
> Chameleon mailing list
> Chameleon@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



This archive was generated by Pipermail.