jQuery event to catch loaded content -
i have aspx page form fire result div on same page. need process hrefs inside result output. action should used in case? $(document).ready
, $(document).ajaxcomplete
didn't work. concerning ajaxcomplete
understand because not jquery routine used page controls.
<script type="text/javascript" language="javascript"> $(document).ajaxcomplete(function() { $('a[href*="mouz"]').removeattr('href'); }); </script>
here answer, adapted msdn - http://msdn.microsoft.com/en-us/library/bb397523(v=vs.100).aspx
in client script add following
sys.webforms.pagerequestmanager.getinstance().add_pageloaded(pageloaded);
to handle event,
function pageloaded(sender, args) { //get of panels have been updated var updatedpanels = args.get_panelsupdated(); //perform removal of href attr on dom element collection $(updatedpanels).find('a[href*="mouz"]').removeattr('href'); }
Comments
Post a Comment