title: jQuery .ready() for infopath form?
body: <p>I have an infopath form that I want to modify via jQuery. The only problem is that it loads after the pages DOM loads, so jQuery's standard <code>$(document).ready(handler);</code> won't work here. My question is is there any way to pull a <code>$(infopath).ready(handler);</code> of some sort, or a way to maybe wait for the infopath form to get done loading, without just using a standard <code>setTimeout()</code>.</p>
  
  <p><strong>EDIT 1</strong>: So you have more information, the jQuery is within a Content Editor Web Part (CEWP), and the Infopath form is within an Infopath Form Viewer Web Part.</p>
  
  <p>I know using jQuery or javascript with infopath isn't a standard practice, it unfortunately is a necessary one in this situation due to non-ideal functionality from infopath repeated option controls, discussed further in <a href="https://sharepoint.stackexchange.com/questions/16879/repeating-option-controls-on-infopath-form">this question</a>.</p>
  
  <p><strong>EDIT 2:</strong> From what I can tell, and I may very well be wrong, sharepoint has a js file called core.js, this seems to have functionality for loading, via AJAX, an infopath form into the page. Is there any way I can set a jQuery function to act after a remote javascript file finishes execution?</p>