title: How to stop the grid from loading
body: <p>I have a ADF jsff page which contains a af:inlineFrame this frame invokes slickGrid, on save i validate the grid cells and error message is displayed by showing an alert message. Once i click on ok, i expect the grid to stay as it is but the grid gets loaded again. After displaying the alert message i have tried <code>window.frames[0].stop()</code>; but this didnt help</p>
  
  <p><strong>JSFF:</strong></p>
  
  <pre><code>&lt;af:inlineFrame id="slickFrame" 
                                  source="/js/views/tarAutomation.html"                                
                                  sizing="preferred" shortDesc="Slick Grid"&gt;
                      &lt;af:serverListener type="onLoadEvt" method="#{pageFlowScope.myBean.initializeGrid}" /&gt;
                      &lt;af:clientListener method="triggerOnLoad" type="inlineFrameLoad"/&gt;
  </code></pre>
  
  <p>on click of Save</p>
  
  <pre><code>function save() {
  // Parse through the dirtied cells
    for(d in dirtyCells)
     {   
       var dirtiedRow = dirtyCells[d].row;
       failures = //Gets the failure array
          if(failures.length&gt;0){
            alert("Mandatory fields are not entered");                               
            grid.gotoCell(dirtyCells[d].row, dirtyCells[d].cell); 
          // This is to set the focus on the errored cells
            window.frames[0].stop();
         }
          else{
              //Continue with the save operation
          }
  </code></pre>
  
  <p>Please let me know how to stop the grid from getting loaded. I want the loading to stop so that the user selected options are seen as errored.</p>