get_form($action); break; case "save_form" : $response['content'] = $document->save_form($caller); break; case "delete" : $response['content'] = $document->delete(); break; case "delete_use" : $response['content'] = $document->delete_use(); break; case "thumbnail" : $document->render_thumbnail(); break; case "render" : $document->render_doc(); break; } if($response['content']){ if(empty($response['content-type']))$response['content-type'] = "text/html"; ajax_http_send_response($response['content'],$response['content-type']); }