Hello,
I have some Javascript embedded in a html page.
I would like to have this snippet parse the numerical results of some
calculations back to the server where a PHP script catches it and stores
results in a db.
The function I would like to include this code in:
function resetall (e)
{
stop_clock ();
score = evalscore (e);
if (bNSC4 || bNSC6)
{ document.releas eEvents(Event.M OUSEMOVE);}
if (ftime == 0)
{ ftime = calc_time();}
ttime += ftime;
num_runs += 1;
// parse ftime, ttime and num_runs to script
// and clear all relevant data before restart (clipped)
} // end func resetall
The PHP part is no problem, I just can't figure out yet how to parse data
from within the JavaScript function.
Anyone got some good pointers ? I probably miss something straightforward
TIA!
Pjotr
I have some Javascript embedded in a html page.
I would like to have this snippet parse the numerical results of some
calculations back to the server where a PHP script catches it and stores
results in a db.
The function I would like to include this code in:
function resetall (e)
{
stop_clock ();
score = evalscore (e);
if (bNSC4 || bNSC6)
{ document.releas eEvents(Event.M OUSEMOVE);}
if (ftime == 0)
{ ftime = calc_time();}
ttime += ftime;
num_runs += 1;
// parse ftime, ttime and num_runs to script
// and clear all relevant data before restart (clipped)
} // end func resetall
The PHP part is no problem, I just can't figure out yet how to parse data
from within the JavaScript function.
Anyone got some good pointers ? I probably miss something straightforward
TIA!
Pjotr
Comment