Hash-Bang(#!) Crosshatch(#)를 URI에서 사용하는 웹어플리케이션에서 포인트
오물딱조물딱/JAVASCRIPT / 2011/12/15 11:17
When a URI reference is used to perform a retrieval action on the identified resource, the optional fragment identifier, separated from the URI by a crosshatch ("#") character, consists of additional reference information to be interpreted by the user agent after the retrieval action has been successfully completed. As such, it is not part of a URI, but is often used in conjunction with a URI.
때문에 javascript와 같이 user agent에서만 취급이 가능하다. 예를 들어
http://manacle.tistory.com?page=2#id=09&name=yong9
와 같은 문자열을 만들고 링크를 클릭할 시 서버로 fragment identifier 부분이 전송되지 않으므로 $_GET과 같은 방법으로 취급할 수가 없다는 말이다.
다만 구글이나 트위터같은 경우 따로 처리하는게 있으니 아래 참고의 해시뱅에대해서를 참고...
참고
해시뱅(#!)에 대해서...
http://php.net/manual/en/reserved.variables.server.php
http://datatracker.ietf.org/doc/rfc2396/?include_text=1(4.1. Fragment Identifier)
'오물딱조물딱 > JAVASCRIPT' 카테고리의 다른 글
| Camel case regex (0) | 2012/02/20 |
|---|---|
| Hash-Bang(#!) Crosshatch(#)를 URI에서 사용하는 웹어플리케이션에서 포인트 (0) | 2011/12/15 |
| WebKit NotificationsAPI (0) | 2010/08/11 |
| Tip, jquery checkbox 전체선택.. 해제.. (0) | 2010/03/03 |
| [펌]함수 프로그래밍 기술을 사용하여 고급 JavaScript 작성하기 (한글) (0) | 2010/02/04 |
| 자바스크립트로 구현된 Carousel (0) | 2009/10/27 |
