'JQuery'에 해당되는 글 1

  1. 2012.11.06 jQuery 사용시 ready()가 호출 안됨.

jQuery 사용시 ready()가 호출 안됨.

개발기에서는 잘 됨.
운영기에서는 ready()가 호출되지 않는거 같다고 함.
운영기는 SSL이 적용되어 있음.
현재 버전이 1.6.1인데 1.8.1을 사용하면 잘 된다고 함.
<script type="text/javascript" src="/irj/portalapps/xxx.static/scripts/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	var msg = '<%= request.getAttribute("msg").toString() %>';
	alert(msg);
	if(msg.indexOf("폐기완료")>-1 || msg.indexOf("삭제")>-1){
		window.parent.location.reload();
	}else{
		window.opener.location.reload();	
	} 
	window.close();
});
</script>