I having been trying to send variables in a function .. this function
that is being called is then suppose to receive the vars from the ajax
function.. can you help me .. because the ajax is not passing
theparameters to the function insert_updatedb
var time_per_question=2; //2 second to answer
one question
var numBer={{=request.vars.number}}; // the
number of questions in worksheet
var bonus= (numBer<20)? 1: (numBer<40)? 3 :(numBer<60)? 7:
(numBer<80)? 9: (numBer<100)? 11 :13 // calculate bonus
var total_time=converttime();
var mgp= (((correct/numBer)+(total_time/
(numBer*time_per_question))+bonus));
{{=numBer}}=numBer
{{=correct}}=correct
{{=total_time}}=total_time
{{=mgp}}=mgp
{{URL('insert_updatedb',
vars=dict(numBer='numBer',mgp='mgp',total_time='total_time',correct='correct'))}}
//ajax('{{=URL('insert_updatedb')}}',
['numBer','mgp','total_time','correct'],'');