can someone point me out how can I send JavaScript variables with AJAX.

JavaScript:

```
var d=new Date();
document.write(d);

```

AJAX:

```
$.ajax
        ({
          type: 'POST',
          url: 'save.php',
          cache: false,
          data: { document.write(d); // Just for example
},

```

Everything else works great. Thanks.