Alternative to jQuery livequery plugin? -
i need check when element alive, i'm doing:
$('#obj').livequery(function() { ... });
how can live method or way?
this old question, record, here 5 cents:
an alternative livequery
use publish/subscribe
approach example implementation jquery tiny pub/sub: really, really, tiny pub/sub implementation jquery.
i use it, example, in way:
// inform of dom change (mostly through ajax) $.publish("/table/loaded"); // re-execute plugin $.subscribe("/table/loaded", function(e, data) { $("#my_id input[name='date']").datepicker(); });
+info : understanding publish/subscribe pattern greater javascript scalability
Comments
Post a Comment