Bug Tracker

Changes between Initial Version and Version 13 of Ticket #3105


Ignore:
Timestamp:
Dec 13, 2010, 2:41:15 PM (9 years ago)
Author:
jitter
Comment:

test case imported from 7744
test case that was original added as attachment now in jsfiddle form

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3105

    • Property Status changed from new to open
    • Property Cc scott.gonzalez@… added
    • Property Component changed from core to manipulation
    • Property Priority changed from major to high
    • Property Keywords document ready script execution needsreview added
    • Property Version changed from 1.2.6 to 1.4.4
    • Property Milestone changed from 1.3 to 1.5
    • Property Owner set to john
  • Ticket #3105 – Description

    initial v13  
    11I have a pice of javascript that is on a page to bind an event
    22handler to a button, somthing like:
    3 ----
     3{{{
    44<script type="text/javascript" charset="utf-8">
    55   $(document).ready(
     
    1414   );
    1515</script>
    16 ---
     16}}}
    1717It uses jqModal plugin, which calls domManip in this case.
    18 domManip seems to have code in it to execute each <script> element,
    19 which seems to cause the click event handler to get bound a second
    20 time. (It was already bound after the page loaded initially.)
     18domManip seems to have code in it to execute each `<script>` element, which seems to cause the click event handler to get bound a second time. (It was already bound after the page loaded initially)
     19
    2120This means my form gets submitted twice when I click the button.
    2221