Ajax function not called when included
        Posted  
        
            by Sev
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sev
        
        
        
        Published on 2010-05-28T23:09:24Z
        Indexed on 
            2010/05/28
            23:12 UTC
        
        
        Read the original article
        Hit count: 222
        
I have an ajax function that is not run when the ajax script is included in my HTML page like so:
<script type='text/javascript' src='ajax.js'></script>
However, if I place the exact same script in the head portion of the HTML page, then it does run.
Why does this occur, and how can I fix it?
© Stack Overflow or respective owner