Bitly 에서 사용하는 JSonP를 이용한 동적 웹서비스 구현
BitlyApi.call = function(method, params, callback_method_name) {
var s = "http://api.bit.ly/" + method;
var url_args = [];
if (callback_method_name) url_args.push("callback=" + callback_method_name);
for (var name in params) {
url_args.push(name + "=" + encodeURIComponent(params[name]));
};
s += "?" + url_args.join("&");
BitlyApi.loadScript(s);
};
2010년 8월 18일 수요일
2010년 8월 10일 화요일
트위터에 글 올리기기 연동
트위터에 글 올리기 연동 ..
html
- a href="javascript:alert('넷마블, 넷마블이 재미있는 이유')"
Javascript
function goTwitter(msg,url) {
var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
var a = window.open(href, 'twitter', '');
if ( a ) {
a.focus();
}
}
트위트 버튼 : http://twitter.com/goodies/tweetbutton
html
- a href="javascript:alert('넷마블, 넷마블이 재미있는 이유')"
Javascript
function goTwitter(msg,url) {
var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
var a = window.open(href, 'twitter', '');
if ( a ) {
a.focus();
}
}
트위트 버튼 : http://twitter.com/goodies/tweetbutton
2010년 8월 9일 월요일
SQL 2005 에서 페이징 처리법
SQL 2005 에서 페이징 처리법
간단하게 잘 되었네요..
-- @CurrentPageIndex : 현재페이지번호 (1번부터시작)
-- @PagingSize : 한페이지에 표시할 게시글수
SELECT TOP (@PagingSize) *
FROM
(
SELECT ROW_NUMBER() OVER(ORDER BY AccountNo DESC) AS RowNo, *
FROM members
) A
WHERE A.RowNo > (@CurrentPageIndex - 1) * @PagingSize;
의문사항 ::
SELECT ROW_NUMBER() OVER(ORDER BY AccountNo DESC) AS RowNo, * FROM members 을
SELECT TOP( @CurrentPageIndex * (@PagingSize) ROW_NUMBER() OVER(ORDER BY AccountNo DESC) AS RowNo, * FROM members 로
바꾸면 어떻까 하는 생각이 든다...
간단하게 잘 되었네요..
-- @CurrentPageIndex : 현재페이지번호 (1번부터시작)
-- @PagingSize : 한페이지에 표시할 게시글수
SELECT TOP (@PagingSize) *
FROM
(
SELECT ROW_NUMBER() OVER(ORDER BY AccountNo DESC) AS RowNo, *
FROM members
) A
WHERE A.RowNo > (@CurrentPageIndex - 1) * @PagingSize;
의문사항 ::
SELECT ROW_NUMBER() OVER(ORDER BY AccountNo DESC) AS RowNo, * FROM members 을
SELECT TOP( @CurrentPageIndex * (@PagingSize) ROW_NUMBER() OVER(ORDER BY AccountNo DESC) AS RowNo, * FROM members 로
바꾸면 어떻까 하는 생각이 든다...
2010년 8월 3일 화요일
Traversing an HTML table with JavaScript and DOM Interfaces
Html Dom 구조를 간단히 파악 할 수 있는 예제입니다..
참고하세요..
https://developer.mozilla.org/en/traversing_an_html_table_with_javascript_and_dom_interfaces
참고하세요..
https://developer.mozilla.org/en/traversing_an_html_table_with_javascript_and_dom_interfaces
2010년 7월 30일 금요일
Apache cassandra
Apache cassandra
Key-value DB의 하나인데...
Digg, Facebook, Twitter 등의 서비스에서 대규모 처리를 지원하는데 사용한다고 하네요..
http://cassandra.apache.org/
Key-value DB의 하나인데...
Digg, Facebook, Twitter 등의 서비스에서 대규모 처리를 지원하는데 사용한다고 하네요..
http://cassandra.apache.org/
2010년 7월 26일 월요일
OAuth 관련 자료들 모음
OAuth 관련 자료들... 모음
공식 자료 : http://hueniverse.com/oauth/
스프링노트 자료 : http://dev.springnote.com/pages/1083108
자세한 설명 : http://blog.reeze.com/entry/Beginner%E2%80%99s-Guide-to-OAuth-%E2%80%93-Part-III-Security-Architecture
설명 : http://blog.daum.net/clickstart/5923351
다음 OAuth API 설명 : https://apis.daum.net/oauth/main/welcome (자세하게 잘 되어 있음 )
PHP OAuth 모듈 : http://kr2.php.net/manual/en/book.oauth.php
공식 자료 : http://hueniverse.com/oauth/
스프링노트 자료 : http://dev.springnote.com/pages/1083108
자세한 설명 : http://blog.reeze.com/entry/Beginner%E2%80%99s-Guide-to-OAuth-%E2%80%93-Part-III-Security-Architecture
설명 : http://blog.daum.net/clickstart/5923351
다음 OAuth API 설명 : https://apis.daum.net/oauth/main/welcome (자세하게 잘 되어 있음 )
PHP OAuth 모듈 : http://kr2.php.net/manual/en/book.oauth.php
피드 구독하기:
글 (Atom)