[jQuery] How to make a POST call ?

[jQuery] How to make a POST call ?

Hello,

I am just playing around a bit with jQuery and so I soon entered a question:

There is following code-snippet trying to call the php-script ShowIt.php:

call.php:
  1. $.ajax({ type: 'POST', timeout: 5000, url: 'ShowIt.php', data: { uids: "1" },function(data){
        alert("Hello");
      }});     


ShowIt.php:

  1.  <?php
     echo '<div style = "position:absolute;top:300px;left:300px;>'.$_POST['uid'].'</div>';
    ?>


What shall I say ? It does not work.

The script 'ShowIt.php' is called with POST, but no data is transferred.

Any idea ?

Thank you,
Stephan