Bug Tracker

Modify

Ticket #11666 (closed bug: invalid)

Opened 13 months ago

Last modified 13 months ago

partial views loaded via ajax in MVC3 will not bind to events listeners with .on()

Reported by: fulton.geoff@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

See  http://stackoverflow.com/questions/2195168/jquery-events-dont-work-with-asp-net-mvc-partial-views for a full breakdown.

Basically, when binding events late, i.e., loading a partial view via ajax on MVC3, the new .on() will not work. However, .live() (the deprecated method) will attach successfully.

Change History

comment:1 Changed 13 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

There is no reference to .on not working in that post. Please ask for help on StackOverflow or another forum.

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.