본문 바로가기
728x90
반응형
SMALL

IT281

jquery selectable 오류 (double click 안먹히는 현상) 해결 * jQuery UI Selectable 1.8.17 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Selectables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function (a, b) { a.widget("ui.selectable", a.ui.mouse, { options: { appendTo: "body", autoRefresh: !.. 2013. 12. 23.
ip address to number & number to ip address /** * dot(.) 형태의 IP Address 를 number(long) 형태로 변경 * @author young-hoi.kim * @param str * @returns */function ipAddrToNum(str) { var d = str.split('.'); return ((((((+d[0])*256)+(+d[1]))*256)+(+d[2]))*256)+(+d[3]);} /** * number(long) 형태의 IP Address 를 dot(.) 형태로 변경 * @author young-hoi.kim * @param num * @returns {Number} */function numToIpAddr(num) { var d = num%256; for (var i = 3; i > 0; i--) {.. 2013. 12. 23.
jquery selectbox 처리 선택된 값 읽기 $("#myselect option:selected").val(); 선택된 내용 읽기 $("#myselect option:selected").text(); 선택된 위치 var index = $("#myselect option").index($("#myselect option:selected")); 항목 추가 $("#myselect").append("1"); $("#myselect").append("2"); option 변경 $("#myselect").html("Some orangesMore OrangesEven more oranges"); // 지정된 index 위치의 option 변경 $("#myselect option:eq(1)").replaceWith("Some apples"); $.. 2013. 12. 23.
부모창에서 자식창으로 데이터 보내기 // opener source function popView(val, pWidth, pHeight) { window.open('${contextRoot}/log/resource/resource/chart/','','width=1024;height=900;scrollbars=yes'); } function setData(opObj) { opObj.innerHTML = $('#testElements').val(); } // pop-up source Pop-up Test 2013. 12. 23.
728x90
반응형
LIST