Ajax Query不会将post值发送给php

I have looked everywhere and can't seem to figure out where the problem in my code is.

I have a table with a radio button in php I need to get the ID of this button and use it in a sql query. I have used ajax to get the ID and can successfully alert the value I need, however the problem is I can not seem to get the ID value to post to the $_POST['id']; in PHP. It just stays blank. The code is all on the same page.

<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
    $(document).ready(function()
    {
        $('table tr').click(function()
        {
                $(this).find('input[type=radio]').prop('checked', true);
                var temp = parseInt($(this).find('input[type=radio]').attr("id"), 10);
                ++temp;
                $.post(window.location, { 'IDENT': temp });

                 $.ajax({
                type: "POST",
                url: window.location,
                data: {IDENT: temp},

                });

        });
    });
</script>

This is my Javascript retrieving the value in which I can alert(temp) and see the desired result. However echo $_POST['IDENT']; stays empty.

Sorry if this an obvious question I am fairly new to both PHP and Javascript

$.post(window.location, { 'IDENT': temp });   //<-----   IDENT: temp

             $.ajax({
            type: "POST",
            url: window.location,
            data: {IDENT: temp},    //<-----   del comma

            });