Even following the official Jquery documentation, my script does not work. Something from day to day. I do not know if I changed something without wanting to.
Follow the code below
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>load demo</title>
<style>
body {
font-size: 12px;
font-family: Arial;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script></head><body><b>Projects:</b><olid="new-projects"></ol>
<script>
$( "#new-projects" ).load( "load.html #projects li" );
</script>
</body>
</html>
- I've already changed the Jquery file to the latest one.
- I tried different browsers
- I have checked similar topics (not so similar)
Is there any restriction on AJAX to load static pages? I do not know what is happening. I do not want to run a page dynamically next to the server (php) because I'm developing an html5 application for mobile. I know there are ways to run php on a smartphone. I do not want it!