<!DOCTYPE html>
<html>
<body>

<p>A function is triggered when the user is pressing a key in the input field.</p>

<input type="text" onkeypress="myFunction()">

<script>
function myFunction() {
    alert("You pressed a key inside the input field");
}
</script>

</body>
</html>

------------------------------------------------------------------------

 A function is triggered when the user is pressing a key in the input field.

------------------------------------------------------------------------

프레임 안에 키를 누를때마다 function의 기능이 실행 된다

'Programming > Java' 카테고리의 다른 글

rowspan  (0) 2016.02.15

<!DOCTYPE html>
<html>
<body>

Enter your name: <input type="text" id="fname" onblur="myFunction()">

<p>When you leave the input field, a function is triggered which transforms the input text to upper case.</p>

<script>
function myFunction() {
    var x = document.getElementById("fname");
    x.value = x.value.toUpperCase();
}
</script>

</body>
</html>

--------------------------------------------------------------------------------------------------

 Enter your name:

When you leave the input field, a function is triggered which transforms the input text to upper case.

---------------------------------------------------------------------------------------------------

프레임에 소문자로 입력하면 마우스 커서가 벗어 낫을때 알아서 대문자로 바꿔준다

 

 

 

 

토드에서 select 문을 수행하면 하단의 Data Grid 창에 검색결과가 뿌려진다.

그런데 일반적으로 하단창에서는 바로 데이타를 수정하지 못한다.


방법 1)


수정 하려면 select 문 수행시 rowid도 같이 가져오면 수정이 가능하다.


하단의 빨간색불이 초록색으로 바뀐다.


예) select rowid, a.* from shop where....;


방법 2)


특정 컬럼만 쿼리하는게 아니라면


edit 테이블명 하면 된다.


예) edit shop where....

출처 : http://ugi.tistory.com/696

+ Recent posts