1.list中(organization_file_manage):
error_content = request.COOKIES.get()
error_type = request.COOKIES.get()
response = render_to_response(
{'error_content': error_content,
'error_type': error_type})
request.COOKIES:
response.delete_cookie()
request.COOKIES:
response.delete_cookie()
2.页面中(organization/organization_files_manage.html):
%if error_content is not None and error_content is not undefined and len(error_content)>0:
%if error_type is None or error_type is undefined or len(error_type) <= 0:
%endif
if(!$.jBox.tip.mess){
$.jBox.tip.mess = 1;
$.jBox.tip("${error_content}","${error_type}", {persistent:true, opacity:0});
$.jBox.tip.mess = 0;
}
%endif
3.在后台保存时(organization_file_save):
response_redirect = HttpResponseRedirect(
reverse())
response_redirect.set_cookie()
response_redirect.set_cookie()
response_redirect