I have an ajaxSubmitButton in an AJAX lightbox (aka. modal window, using shadowbox if that matters) and I’m getting some strange behavior.
Basically if I submit the form, close the box, then open it again (which should be loaded fresh)it submits it twice when I press the submit button. In-fact it seems to do it proportional to how many times I have opened submitted the form already, for example if I have submitted the form 5 times it will call the controller 5 times.
It’s a real problem because this is forming the checkout of a cart and if I have made submitted the form (and say it doesn’t validate) then I submit it again, it places two orders. I can’t possibly see why this would be happening because everything is loaded fresh via AJAX.
Anyone have any ideas? I’m not really sure what code to post as I have no idea where this problem is originating from.