목록2010/09 (4)
Data Analysis for Investment & Control
은 문자열이나 인라인 레벨 엘리먼트(inline-level element)를 위한 것으로 나 이 블록 엘리먼트들을 다루고 있는 것과 차이가 있습니다. 만약, 테이블과 같은 구조의 블록이 아니라 이름이나, 숫자 등의 비교적 작은 엘리먼트들에 대한 레이아웃을 핸들링 하고자 한다면 을 써줍시다. 1,000 id 활용 태그의 id 속성을 활용하여 데이터를 뿌리는 기능으로 사용할 수도 있습니다. function ondisplayData() { document.getElementById("아이디").innerHTML = 데이터; } window.onload = function() { ondisplayData(); } // '데이터'로 바뀐다! 예를들어, 현재 DB에 등록된 회원수가 얼마인지 웹페이지에 표시하고 싶다..
Ajax 프로그래밍 하는데, "Ajax 가 정의되지 않았습니다"란 메시지에 '이거 따로 정의해줘야 하는 거야??' 라고 생각하고 있었는데, 검색 중에 prototype.js의 존재를 발견... 역시 무지하면 몸이 고생하는 군요. /* Prototype JavaScript framework, version 1.6.0.3 * (c) 2005-2008 Sam Stephenson * * Prototype is freely distributable under the terms of an MIT-style license. * For details, see the Prototype web site: http://www.prototypejs.org/ * *-----------------------------------..
A basic example var url = '/proxy?url=' + encodeURIComponent('http://www.google.com/search?q=Prototype'); // notice the use of a proxy to circumvent the Same Origin Policy. new Ajax.Request(url, { method: 'get', onSuccess: function(transport) { var notice = $('notice'); if (transport.responseText.match(/href="http:\/\/prototypejs.org/)) notice.update('Yeah! You are in the Top 10!').setStyle({ ba..