Reputation: 23
I included Highcharts using php.mysql,ajax in my website. it is running fine in pages with url structure "abc.com/xyz/" but not running un "abc.com/qwerty.php". All other jquery calls are done in header file which is constant throughout. What can be the problem? Any help will be highly appreciated.
Upvotes: 0
Views: 86
Reputation: 3876
Judging by your response to my comment, you are definitely having problems with relative URLs. Change your <script />
URLs to be absolute. For example:
<script type="text/javascript" src="/js/dxJ_uCBsir4yQMacwqm_6l.js"></script>
Notice the preceding /
in the src
there. If the scripts are not available from /js/...
on your Web site, then adjust accordingly, e.g.:
<script ... src="/some/path/js/dxJ_uCBsir4yQMacwqm_6l.js"></script>
If you do this, you will not have problems referencing the scripts from paths of varying /
depths, which is clearly the problem you're having based on the symptoms you described. :) Hope this helps.
Upvotes: 1
Reputation: 5746
You can try to change permission of that file.
Right Click that file and Change Permission as Read/view/Write.
I had same problem in CPanel. I done this one. Then it's working fine.
Just Try it.
Upvotes: 0