#72 ✓invalid
Nils Knappmeier

Race condition when submitting a form in "afterChange"-handler (tabs.js)

Reported by Nils Knappmeier | September 30th, 2009 @ 03:29 AM | in 1.0

When the afterChange handler submits a form via javascript, the following race-condition can occur:

1) A user clicks on one tab, the form is submitted.
2) The user clicks on another tab while the reload is in progress.

When clicking the second link, Firefox will notice, that the URL of the window has changed, but a link to local anchor is clicked. In order to follow the link to the local anchor, it performs a reload of the page before the form submit.
No form data is submitted in this case.

The fix is to remove the href from the tab-links after the control has been initialized. A patch is attached.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

NOTE: Please do not open tickets here. If you have an issue, please open it on http://github.com/syntacticx/livepipe-ui/issues/

High quality widgets and controls for web 2.0 applications built using the Prototype JavaScript Framework. Each control is well tested, highly extensible, fully documented and degrades gracefully for non JavaScript enabled browsers where possible. MIT licensed and actively maintained.

Attachments

Pages