Include jQuery document.ready() as an include file
<p>Am I able to include as an include, an external jquery.dialog.js file that consists of the following:</p>

<pre><code>$(document).ready(function(){ 

    $(function() {
      location.hash = 'PAGETOP';
    });

   $("#dialogou").dialog({
            autoOpen: false,
            closeOnEscape: false,
            resizable: false,
            modal: true,
            draggable: true,
            position:  ["center", 100],
            buttons: {
              'Ok': function() {               
                      $(this).dialog("close"); 
                      closeReq();
                    }
        }
    });  
});
</code></pre>

<p>and then pass this in using the script include notation:</p>

<pre><code>&lt;script type="text/javascript" src="../jquery.dialog.js"&gt;&lt;/script&gt;
</code></pre>

<p>Any help would be appreciated as it doesn't seem to work for me.</p>

<p>Thanks</p>
