Summary: | multiple submit problem in IE | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Bart van den Eijnden <bartvde@osgis.nl> |
Component: | Core | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | 2.0 Final | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
I was thinking about how to do this. One way would be to do it in the way you suggest here which is to provide a generic submit function which all widgets would call. This would necessitate changes to almost every widget, a lot of work :( I'm going to suggest another way which can be implemented by the user with no changes to widgets. Essentially, I want you to try this: <script language="Javascript"> var pageLoaded = false; function myOnload() { pageLoaded = true; CWC2OnLoadFunction(); } function mySubmit() { //returning false prevents the form from being submitted. return pageLoaded; } </script> <body onload="myOnLoad();"> <form onsubmit="mySubmit();"> ... widgets here ... </form> </body> if this works then I would suggest that we make this a documentation/known problems issue and make sure that this is recorded
Set Target Milestone to 1.99 Final
Hi Paul, I checked this approach and it seems to work. Great!
has this bug been fixed? Bart's last comment seems to think so.