http://fettig.net/weblog/2005/11/28/how-to-make-xmlhttprequest-connections-to-another-server-in-your-domain/
subdomain의 페이지의 full URL과 함께하는 XHR
- <html>
- <head>
- <script type=”text/javascript” src=”xmlhttp.js”></script>
- <script type=”text/javascript”>
- var AJAX_URL=”http://www.fettig.net/playground/ajax-subdomain/ajaxdata.php”;
- function getTime(){
- getUrl(AJAX_URL, gotTime);
- }
- function gotTime(status, headers, result) {
- document.getElementById(’time’).innerHTML = result;
- setTimeout(getTime, 1000)
- }
- window.onload = getTime;
- </script>
- </head>
- <body>
- <div id=”time”>
- </div>
- </body>
- </html>
'PROGRAMMING' 카테고리의 다른 글
| XmlHttpReques 2 (0) | 2008/05/15 |
|---|---|
| XmlHttpReques 1 (0) | 2008/05/15 |


이올린에 북마크하기