Skip to main content

Bug Tracker

Side navigation

#5741 closed bug (worksforme)

Opened January 01, 2010 06:38PM UTC

Closed October 18, 2010 09:37PM UTC

$(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)
  • test.php (0.4 KB) - added by Taturana January 01, 2010 06:38PM UTC.
Change History (4)

Changed June 13, 2010 11:35PM UTC by dmethvin comment:1

component: unfiledajax

Changed October 18, 2010 09:15PM UTC by zjs comment:2

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?

Changed October 18, 2010 09:36PM UTC by rwaldron comment:3

Additionally, this is calling "jquery-1.4a2.min.js"

Changed October 18, 2010 09:37PM UTC by snover comment:4

resolution: → worksforme
status: newclosed