JavaScript Where To

ITWeb/개발일반 2008. 2. 20. 15:54


 
JavaScript Where To
-Scripts in the head section: Scripts to be executed when they are called, or when an event is triggered, go in the head section. When you place a script in the head section, you will ensure that the script is loaded before anyone uses it.
-Scripts in the body section: Scripts to be executed when the page loads go in the body section. When you place a script in the body section it generates the content of the page.
-Scripts in both the body and the head section: You can place an unlimited number of scripts in your document, so you can have scripts in both the body and the head section.
:

What can a JavaScript Do?

ITWeb/개발일반 2008. 2. 20. 15:53


 
What can a JavaScript Do?
-JavaScript gives HTML designers a programming tool
-JavaScript can put dynamic text into an HTML page
-JavaScript can react to events
-JavaScript can read and write HTML elements
-JavaScript can be used to validate data
-JavaScript can be used to detect the visitor's browser
-JavaScript can be used to create cookies
:

Introduction to JavaScript - What is JavaScript?

ITWeb/개발일반 2008. 2. 13. 21:01
얼마전 사내 tech talk 으로 했던 강좌를 공유해 봅니다
기초에서 부터 고급까지 그러나 고급 부분은 맛뵈기구요.
실무 중심의 강좌는 따로 작성 하도록 하겠습니다.

What is JavaScript?
- JavaScript was designed to add interactivity to HTML pages
- JavaScript is a scripting language
- A scripting language is a lightweight programming language
- A JavaScript consists of lines of executable computer code
- A JavaScript is usually embedded directly into HTML pages
- JavaScript is an interpreted language (means that scripts execute without preliminary compilation)
- Everyone can use JavaScript without purchasing a license


:

이연희 귀여워 춤

Legacy 2008. 2. 3. 07:46
이거 노래와 함께 춤을 한번 배워 보도록 하죠.. ^^*




근데.. 정말 귀엽죠.. ㅎㅎ
:

prototype 패턴 과 singleton 패턴

ITWeb/스크랩 2008. 1. 29. 10:42
짧게 표현 한 prototype 과 singleton 패턴

1. prototype 패턴
이미 생성된 객체를 복제해서 새로운 객체를 생성하는 방법
- 객체 생성 방식이나 구성 형태, 표현 방식 등과 무관하게 객체를 생성 하고 싶을때 유용
- 생성할 객체가 run-time 시에 결정 되어 질때 유용
ref. http://kr.search.yahoo.com/search/web?p=prototype+%C6%D0%C5%CF&ret=1&fr=kr-search_top&subtype=WebDoc
ref. http://kr.search.yahoo.com/search/web?p=prototype+pattern&ret=1&fr=kr-search_top&subtype=WebDoc

2. singleton 패턴
객체가 생성되는 개수를 제한 하는 형태의 설계가 singleton 패턴 이라 하고 극단적으로 제한되는 객체의 개수가 1개일 때를 감안한 패턴 (최대 N개 까지만 객체를 생성 하도록 제한)
- 패턴 구현시 모든 생성자는 protected 영역에 정의 되어야 함.
- 상속 관계에 놓인 클래스들에 대해 전체적으로 생성되는 객체의 최대 개수를 제한 하고자 할때 유용
ref. http://kr.search.yahoo.com/search/web?p=singleton&h=D
: