My Name is Kay....

DIY , 먹방 , 개발 , 육아 , 여행 좋아합니다.
AdBlock 사용시 화면이 정상적으로 노출되지 않습니다.
포스팅 관련 문의 및 개발 문의는 Email : wkzkfmxksi@gmail.com

추가 포스팅이 이뤄지지 않는 블로그입니다. 문의는 wkzkfmxksi@gmail.com 으로 연락주세요.
kay
조회 수 12023 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

크롬에서 Submit() 되어 Form 방식으로

넘어온 데이터가 페이지를 Reload() 하게 되면 사라지는 크롬만의 버그!!!.


몇년된 버그라고 하는데 그닥 고쳐지지 않고 있습니다.


임시방편은 GET 방식으로 값을 받거나 

Reload 대신 다시 폼을 구성하여 다시 Submit() 하는 방법정도...


Test Url : http://www.uhoon.co.kr/test/2514.asp 

 : Submit() 후 Reload 하면 값이 사라집니다.


<!DOCTYPE html>
<html>
<head>
	<title>Chrome Bug - Reload()</title>
	<script src="http://code.jquery.com/jquery-latest.min.js"></script>
	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<script type="text/javascript">
<!--
$(function() {
	$("#btnReload").on("click",function(){
		location.reload();
	});
});
//-->
</script>
</head>
<body >
<div>
	<form method="post" action="2514.asp" name="frmTest">
		<label for="Data">Send Data:</label>
		<br/>
		<input type="text" name="A" value="AAA"/>
		<input type="text" name="B" value="BBB"/>
		<input type="text" name="C" value="CCC"/>
		<br/>
		<br/>
		<label for="Data">Request Data:</label>
		<br/>
		<textarea id="formData" rows="5" cols="50"><%=Request.Form%></textarea>
		<input type="submit" />
		<input type="button" value="reload" id="btnReload"/>
	</form>
</div>
</body>
</html>


참고 Url : 

https://code.google.com/p/chromium/issues/detail?id=6429

https://bugs.webkit.org/show_bug.cgi?id=23735

http://stackoverflow.com/questions/13476006/javascript-location-reload-is-losing-post-data

TAG •
?
  • ?
    지나가는이 2014.02.03 21:47

    크롬은 참으로 우수한 녀석인데...어찌 이런 버그가 있는지..

    통탄할 따름입니다...--;


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
14 MSSQL 라이브러리가 등록 되지 않았습니다. (HRESULT에서 예외: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) kay 2014.01.06 4955
13 Etc The page you are looking for is temporarily unavailable. Please try again later. file kay 2014.05.22 4543
12 MSSQL 일괄 처리를 실행하는 동안 오류가 발생했습니다. 오류 메시지: multipart 이름이 잘못되어 SQL Server 결과를 처리하지 못했습니다. "192.168.0.33.디비명.dbo.테이블명", 현재 한도 "4"이(가) 부족합니다. kay 2014.05.20 4212
11 MSSQL 'TRUNCATE_ONLY'은(는) 인식할 수 없는 BACKUP 옵션입니다. kay 2013.11.04 3989
10 HTTP HTTP 오류 메시지 kay 2013.03.11 3834
9 MSSQL BULK INSERT 행 x, 열 xx (column name)에 대량 로드 데이터 변환 오류(잘림)가 발생했습니다. kay 2017.04.05 3732
8 MYSQL The configuration file now needs a secret passphrase (blowfish_secret). kay 2013.04.24 3697
7 PHP Notice: Undefined index: 변수명. kay 2013.06.30 3421
6 PHP 컴퓨터에 MSVCR110.dll이(가) 없어 프로그램을 시작할 수 없습니다. 프로그램을 다시 설치하여 이 문제를 해결하십시오. kay 2014.07.14 3361
5 Javascript jQuery 로 폼안의 객체를 가져오지 못하는 경우 kay 2013.11.20 2898
4 Etc DEXTUpload 오류 '800a004b' Path/File access error kay 2014.05.15 2433
3 MSSQL Login failed for user 'userid'. (Microsoft SQL Server, Error : 18456) file kay 2015.08.19 1220
2 PHP Deprecated: Function split() is deprecated 3 kay 2014.12.19 1105
1 MYSQL mysqldump: Got error: 1016: Can't open file: '.\xxx\xxx.frm' (errno: 24 ) when using LOCK TABLES kay 2015.08.28 1023
Board Pagination Prev 1 2 Next
/ 2