I'm wondering that how API results can load as response comes.

[similar functionality](http://flight.yatra.com/air-search/dom2/trigger?type=O&viewName=normal&flexi=0&noOfSegments=1&origin=BLR&destination=MAA&flight_depart_date=21/04/2014&originCountry=IN&destinationCountry=IN&ADT=1&CHD=0&INF=0&class=Economy)

I think using ajax from database we can get.
But here from API(live results) SOAP API.

any suggestions?

**EDIT**

My current ajax function is 

```
$.ajax({
    type: "get",
    url: "<?=base_url()?>search/showresults",
    cache: false,               
    data:datastring,
    beforeSend:function(){
           $('#resultloader').show();
    },
    success: function(response){
        $('#resultloader').hide(500);
        $('#showflightresults').html(response);
    },
    error: function(){                      
         //alert('Error while Sending request..');
    }
});

```

Thank you