2 Replies Latest reply on Dec 18, 2007 7:24 PM by Jason Long

    Prevent showing content until page is completely loaded

    Jason Long Master

      I have a complex and lengthy datatable that takes a bit for the browser to load.

      I get

      java.lang.IllegalStateException: No RenderingContext


      if the user clicks an Ajax link if the browser has not completed loading the page.

      What is the best what to prevent this from happening?

      Should I hide the content with css until the table is finished loading or maybe I can freeze the page like modal panel does and then use

      jQuery(document).ready(function() {//javascript to make page clickable});


      However this will not work on Ajax reRender.

      I tried

      jQuery('#centerPanelContent').ajaxComplete(function() {alert('centerPanelContent');});
      


      , but this is not called when I reRender I did not see the alert.

      Has anyone tackled this before?