In the browser download.php?RID=189 works fine. i.e. loads and starts the download of the mp3 file.
but when called from an onclick, nothing happens. the data is populated ok and is successful but no download starts. do I need to do something with the data to make it start or change the way the php file is called? the php file is based on: http://davidwalsh.name/php-force-download
function onApproveClick(clickVal)
{
$.post("download.php",
{
RID: clickVal.value,
},
function(data,status){
// alert("Data: " + data + "\nStatus: " + status);
});
}