MapTools.org

[Chameleon] multiple submit problem in IE

bartvde@xs4all.nl bartvde@xs4all.nl
Tue, 20 Jan 2004 14:06:28 +0100 (CET)
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


This archive was generated by Pipermail.