2ce5aab1153d6464864ed9f313f0a20e722a76c5.svn-base 2.4 KB
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>loading</title>
</head>
<body>
	<script>
		postRequest();
		
		function postRequest() {
			var form = document.createElement("form");
			form.action = "track_recordFromMail.action";
			form.method = "post";
			form.style.display = "none";
			var input = document.createElement("input");
			input.name = "ywxType";
			input.value = <%=request.getParameter("ywxType")%>;
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxUid";
			input.value = '<%=request.getParameter("ywxUid")%>';
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxCid";
			input.value = '<%=request.getParameter("ywxCid")%>';
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxMid";
			input.value = '<%=request.getParameter("ywxMid")%>';
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxMail";
			input.value = encodeURIComponent('<%=request.getParameter("ywxMail")%>');
			
			if (input.value != null && input.value != "null" && input.value.trim().length > 0) {
				
				form.appendChild(input);
			}
			
			input = document.createElement("input");
			input.name = "ywxTo";
			input.value = encodeURIComponent('<%=request.getParameter("ywxTo")%>');
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxCookie";
			input.value = navigator.cookieEnabled;
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxReferrer";
			input.value = encodeURIComponent(document.referrer);
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxX";
			input.value = window.screen.width;
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxH";
			input.value = window.screen.height;
			form.appendChild(input);
			
			input = document.createElement("input");
			input.name = "ywxTitle";
			input.value = encodeURIComponent('<%=request.getParameter("ywxTitle")%>');
			form.appendChild(input);
			
			document.body.appendChild(form);
			form.submit();
		}
	</script>
</body>
</html>