I am french, I am working on website optimisation with AJAX but I have a strange error. I explain with code
I am working with php file. In this php file we built a table with id='ajax'
<table id='ajax' width='100%'> <!-- On cré un nouveau tableau qui prend toute la largeur de la page -->
This table is feed with php data (echo + html code)
Just aside we have an other php file named ajax_v2.php which normaly feed the table after javascript and AJAX request.
So, I want to use load method from jquery
My js script is here :
<script src="js/jquery-last.js"></script>
<script>
function ajax(id,type)
{
var param = 'read=' + id + ',type=' + type;
$("#ajax").load("themes/2/ajax_v2.php",param);
alert(param);
}
</script>
This script is at the end of the first php file.
When I execute this code on FTP session, I am working for a website, the answer is :
GET XHR http://www.next-war.com/2-test/themes/2/ajax_v2.php [HTTP/1.1 500 Internal Server Error 97ms]
Please help me to resolve this problem.
I am sorry for my bad english. And i am a beginner in web programation.
Thank you a lot.