*/ /** * Start a timer and hand it back to the JS by assigning the current time (of start) to * var asset_timer */ function start_timer() { //$objResponse = new xajaxResponse(); $time = time(); //$objResponse->addScript("asset_timer='$time';asset_timer_total=0;"); //return $objResponse; return "asset_timer='$time';asset_timer_total=0;"; } echo start_timer();