Hello guys i am trying to retrieve data in json format which is ok. But i am having reposting the data to another url.
<script id="source" language="javascript" type="text/javascript">
  $(function () 
  {
    $.ajax({                                      
      url: 'api.php',                  //the script to call to get data          
      data: "",                        //you can insert url argumnets here to pass to api.php for example "id=5&parent=6"
      dataType: 'json',                //data format      
      success: function(data)          //on recieve of reply
      {
      var formData = {fname:data[0],lname:data[1],email:data[2]};
    //---------------------------------------------------------------------
    });
    $.ajax({
    url : "http://requestb.in/1k8rvk71",
    type: "POST",
    data : formData,
    success: function(data, textStatus, jqXHR)
    {
     //data - response from server
    },
    error: function (jqXHR, textStatus, errorThrown)
    {
    }
});
  }); 
  </script>
Plz help guys.. really need to get this work.
 
    