I can't find the reason why the below code is not working. It seems like an ordinary "test" alert, but it does not work!
This is a .php file with the following code:
<?php
require_once('../../usefull/functions');
if(!session->loggedIn)
{ redirect_to("../index.php"); }
?>
<link href="../ssheet.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../scripts/Image.js"></script>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
alert("hello");
});
</script><?php
<div id="imagelist"></div>
Thanks in advance!
ANSWER:
It appeared there was a bug in my SelectImage file. An element was called which does not exist on this particular PHP file.