Saturday, March 26, 2011

How to use cufon.replace inside UpdatePanel?


Place below code inside Update Panel 
 
<script type="text/javascript" language="javascript">
  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
  function EndRequestHandler(sender, args)
  {
   Cufon.replace('h1');
   Cufon.now();  
 }
<script>

No comments: