Hi Marc,
Could you change one thing about the js variable names? By convention,
adding a $ prefix is only for jQuery objects. In your code, "$url"
should be "url" because it does not refer to the jQuery object but to an
attribute of it.
Also, replace
<script src="js/messages.php"></script>
with
<script type="text/javascript" src="js/messages.php"></script>
Another thing: you copied chunks of code from js/functions.js into
js/navigation.js. This means maintainability problems for the future.
Can you refactor this code into a function which would be in
functions.js and called from both places (table creation in navigation
panel and table creation in main panel)?