I’m very newbie of everything concerns servers, but I need to develop a PHP website and I need to try I before release. So I choose XAMPP for install Apache + PHP. Everything went good.
Now I have a problem when I try to run a local web page (simple html) that contains links to remote javascript and CSS. My page is trying to use JQuery code, from JQuery site, following this very simple example:
- Code: Select all
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" href="http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/main.css" type="text/css" />
<link rel="stylesheet" href="http://dev.jquery.com/view/trunk/plugins/autocomplete/jquery.autocomplete.css" type="text/css" />
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.dimensions.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/jquery.autocomplete.js"></script>
<script>
$(document).ready(function(){
var data = "Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
$("#example").autocomplete(data);
});
</script>
</head>
<body>
Esempio: <input id="example" />
</body>
</html>
When I try to run my page from localhost:
http://localhost/prova/prova.htlm
I have neither css nor js files associated. So the function autocomplete doesn’t work.
If I simply use my browser, running:
F:\xampp\htdocs\web\prova\prova.htlm
I don’t have any problem.
Could anybody help me?
I apologize in advance if I asked something already known, but I’ve searched for so long, obtaining non results.
Thank you very much.
Betty