Question: i have a function like this:

```
    $("#join").colorbox({
    onComplete:function(){
        // add code here
    },
    width:"530px", height:"500px", inline:true, href:"#add"
});

```

what i would like to do is `onComplete:function()` to create a ajax request to a `xxx.php` file. 

i just want to make the request so that i can call a new url. i dont want to load anything from the new file and i dont want to redirect to that file, i just want to make a ajax call to it.

any ideas?
thanks

Answer: 
Take a look at: <http://api.jquery.com/jQuery.ajax/> 

```
$.ajax({
   type: "GET",
   url: "xxx.php",
   success: function(msg){
     alert("Success!");
   }
 });

```
You can use [`$.get()`](http://api.jquery.com/jQuery.get/) to send a GET request to your page. It will look like this:

```
$.get('xxx.php');

```

You can use the additional arguments to send data through GET, and to include a callback function if you want to do anything when the request finishes.