I am using a plugin called jQuery contextMenu but am having trouble making it work with elements that are loaded via ajax after the DOM has already loaded. does anyone know how i can get this working with .live?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve made a modification of the original jquery.contextMenu.js script. I’ve replaced
.each()with.live("mousedown", ...)and deleted appropriate mousedown binding (you can also make a diff of my code and the original to get the changes).You can get the code from http://pastebin.com/jBcAR6g1
Works for me.