Javascript Sortable로 Drag&Drop 구현

2015. 9. 4. 00:48서버 프로그래밍

Sortable을 이용하여 Drag&Drop을 구현할때, Drag&Drop이 끝난 시점을 체크하고 양쪽의 항목들의 목록을 가져오는 부분을 처리하기 위해 다음을 참고하였다.

http://blog.outsider.ne.kr/275

http://blog.outsider.ne.kr/myexample/2009/DragSortable/index.html


그런데, 해당 기능을 적용해보니 기존의 JQuery 코드와 충돌이 발생한다. 그래서 아래 블로그 내용 처럼 $를 "j$"로 변경해서 처리하였다.

http://smartjuho.tistory.com/entry/JQuery-%EC%99%80-Prototype-%EC%B6%A9%EB%8F%8C-%EB%B0%A9%EC%A7%80


Node.js의 socket.io와도 충돌하는 것 같아서, 최신 버전의 prototype.js로 변경해주니 해결된다.

Missing error handler on `socket`. 

TypeError: Function.prototype.apply: Arguments list has wrong type

https://developers.google.com/speed/libraries/#prototype