I am trying to build an phone gap application in which we can only have java script API to communicate with mobile resources so i need to communicate with share point list with rest-full web service
so how to authenticate user outside the share point environment and manipulate share point lists in javascript