목록Ajax (2)
Data Analysis for Investment & Control
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..