Bug Tracker

Modify

Ticket #1633 (closed bug: worksforme)

Opened 6 years ago

Last modified 5 years ago

Bindings in Ajax content stopped working in 1.2.1

Reported by: back-2-95 Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2
Keywords: bind Cc:
Blocking: Blocked by:

Description

When I upgraded 1.2 to 1.2.1, all my bind commands in Ajax content stopped working.

For example I have following js-code in Ajax-content:

<script type="text/javascript">

$("ul#tools a").bind (

"click", function() {

openDialog($(this).attr("href"));

return false;

}

);

</script>

$("ul#tools a") seems to find object but it won't bind anything to them.

I normal content bind seems to work. And in 1.2 it works in both normal and Ajax content.

Attachments

jquery_test.html Download (690 bytes) - added by davidserduke 5 years ago.
test case (built based on description)

Change History

comment:1 Changed 6 years ago by davidserduke

I couldn't reproduce this bug unless the DOM wasn't ready yet.

Adding $(document).ready() to your code it seemed to work fine.

Changed 5 years ago by davidserduke

test case (built based on description)

comment:2 Changed 5 years ago by davidserduke

  • need changed from Review to Test Case
  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 1.2.1 to 1.2.2

I built a test case based on the description and it works for me. If you have a test case that fails please reopen the ticket and attach it.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.