JQuery(2)
-
팝업창을 닫으면서 부모창을 새로고침하는 방법
예1)opener.parent.location=’부모창주소(원하는주소)'; - 원하는 주소를 직접 써줘도되고 예2)opener.parent.location.reload(); window.close(); - 이런식으로 reload를 써줘도 된다. window.close() 는이런식으로 써주면 목록버튼을 누를때 팝업창이 닫히게 된다.
2015.10.31 -
[JQuery-Ajax] .load()를 통한 Ajax 이용
load demo body { font-size: 12px; font-family: Arial; } Successful Response (should be blank):Error Response: $( "#success" ).load( "/not-here.php", function( response, status, xhr ) { if ( status == "error" ) { var msg = "Sorry but there was an error: "; $( "#error" ).html( msg + xhr.status + " " + xhr.statusText ); }}); load demo body { font-size: 12px; font-family: Arial; } $( "#success" ).lo..
2015.10.29