I was using JQuery code on my page to send a user's selection from a drop-down to the server. For some reason when I used .live() like this:
$(".rNameSelect:not(.srchCntnt .rNameSelect)").live("change", function(){
var rName=$(this).val();
$("#managersViewTabs .mgrCntnt").load("managerview.do?type=report&reportName=" + encodeURIComponent(rName));
});
the page got progressively slower each time I clicked on another choice in the drop-down! When I changed it like this:
$(".rNameSelect:not(.srchCntnt .rNameSelect)").change(function(){
var rName=$(this).val();
$("#managersViewTabs .mgrCntnt").load("managerview.do?type=report&reportName=" + encodeURIComponent(rName));
});
the problem was solved! Why is .live() slow? Did I really want .live() or is .change() okay to use?