script src attribution sometimes doen't work in .php file

chapmanworm

New Member
i wrote like this as follow in a php file (for example: a.php)\[code\]<script src="http://stackoverflow.com/questions/10549653/scripts/a.js"></script><div> .....</div>\[/code\]I can guarantee that the path of js file is right, because i can see the js content in firebug HTML-view. However, in Script-view there isn't a.js. It seems that a.js has been added into the html but can't be loaded, but some other js files can be recognized. And if I paste the js content directly in the DOM, it works. I'd like to know when doesn't work and why? thanks a lot~Answer: There's some serious syntax errors in my js file. The error may be too serious for the browser to recognize it...
 
Back
Top