javascript - hyphen not allowed in script src=? -
i thought cgi-bin place store js script, it's not found using
<script type="text/javascript" src="cgi-bin/jscripts1.js"></script>
renaming , changing cgi-bin cgibin makes work. documented somewhere?
thought hypen most-accepted special character.
i tested out code on local apache server. code works fine. problem seems hosted server (hostmonster) have mentioned in comments.
an alternative using hypen encode in url shown.
<script type="text/javascript" src="cgi%2dbin/jscripts1.js"></script>
also check following links :
html: href syntax : okay have space in file name
Comments
Post a Comment