#3616 closed bug (invalid)
Double event execution
Reported by: | Owned by: | brandon | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | event | Version: | 1.2.6 |
Keywords: | Cc: | webJ@… | |
Blocked by: | Blocking: |
Description
I have found that sometimes an event is executed twice. $('#submit').click(function() { ... this executed twice ... } Dont know why.
Attachments (1)
Change History (8)
comment:1 Changed 15 years ago by
Cc: | webJ@… added |
---|
Changed 15 years ago by
Attachment: | jquery_and_zend_framework.txt added |
---|
JQery Events with PHP (Zend Framework variables)
comment:2 Changed 15 years ago by
I attached file with code where I have problems.
Mainly its all about:
$('#submit_nowe_zam<?=$this->escape($klienci->id)?>').click(function() { $('#zapis<?=$this->escape($klienci->id)?>').click(function() {
I get ajax success and java script alerts twice, unfortunately.
comment:4 Changed 15 years ago by
I have tested it with: dbclick, mouseup, mousedown and it accures everytime. Also thought it was a browser bug but its the same on IE6, IE7 and Firefox 3.
When setting asynchronous transmission on ajax, it waits a second and gives an unwanted, second execution (doubled).
Does anyone found a solution (patch) to that?
comment:5 Changed 15 years ago by
Discovery!
When event handler is outside $(document).ready(function() {... everthing seems to be ok.
comment:6 Changed 14 years ago by
Sounds like this was not a jQuery problem so I will close the ticket.
comment:7 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Can you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem