Byron,
delegate is not depreciated in 1.7, it's still active as of 1.11, which is
the version that I'm using. There are a couple of instances of deferred.is
that are depreciated but not .delegate.
http://api.jquery.com/category/deprecated/deprecated-1.7/
.on() in jquery 1.7+ is probably what to use instead of delegate(). I only
say this as the documentation notates on() supercedes delegate(). And they
have a habit of deprecation in these instances.
$(document).on(event, selector, function )
On Mar 20, 2015 1:08 PM, Scott Stewart
I think you need to add an event listener for the class:
classname.addEventListener('click', myFunction, false);
Robert Harrison
Full Stack Developer
AIMG
rharri...@aimg.com
Main Office: 704-321-1234 ext.118
Direct Line: 516-302-4345
www.aimg.com
-Original Message-
From: Scott
.delegate is what I was looking for
$(#pathList).delegate('.editPathway','click', function(){
var x = $(this).data(id);
$('#pathEditFrm').jqm({
modal:true,
ajax:'index.cfm?action=loadPathEditid=' + x + 'nolayout',
closeOnEsc: true
}).jqmShow();
});
#pathList is the parent container and the
4 matches
Mail list logo