AJAX behaving badly
Hi, I hope someone can help!
I have a function which calls a PHP script to insert/update records in a SQL Server DB. The same script needs to be called several times but it only seems to work the first time it is called otherwise I have to close and reopen the browser which defeats the object of the application...what am I doing wrong?
The function is :
function insertRecord(qid, qnum, saleamt,thresh,apis1,apis2, randomnumber)
// var http = "";
var http = new createRequestObject();
http.open( 'get', 'insert.php?qid=' + qid + '&qnum='+ qnum +'&saleamt='+ saleamt +'&thresh='+ thresh +'&apis1='+ apis1 +'&apis2=' + apis2 +'&instype=MASTER', false );