Ok I learnt some jQuery, I don't know if it helped.
Here's my function:
function edituserquestion(questionid, action) {
$.post(
"index_edituserquestion.php",
{questionid: questionid, action: action},
function(xml) {
qid = $("questionid", xml).text();
questiontype = $("questiontype", xml).text();
fedituserquestion(qid, questiontype);
refreshnreviewnow();
refreshreviewquestions();
}
);
}
So when I click one one question, calling edituserquestion(30), and quickly click on edituserquestion(20), only edituserquestion(20)'s response is registered.
I don't know how to convert this to use global variables. What should I do?