Opened 13 years ago
Closed 12 years ago
#5741 closed bug (worksforme)
$(element).html(val) SERIOUS BUG
Reported by: | Taturana | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4 |
Component: | ajax | Version: | 1.4a2 |
Keywords: | html | Cc: | |
Blocked by: | Blocking: |
Description
The problem is: when you change successively the html of an element (and the new html content has javascript code), after certain change the javascript code is no longer executed (inside the element). I'll give example in code, just download the attached file and test. Click successively on the button and you'll see the alert won't appear after the second or third click.
Attachments (1)
Change History (5)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Component: | unfiled → ajax |
---|
comment:2 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
The attachment does not use the $(element).html(val) function you refer to in the subject of the ticket. I'm not sure I see a bug in the provided php file; it seems to be behaving as I would expect it to. Could you verify that you've uploaded the correct attachment?