I am trying to develop a Gadget for Sharepoint 2007, which will authenticate a user and then fetch him a sharepoint list from a specific URL,
For the last 4 days I have been working on it and came across different ways of making it, but because solutions are either half done, dont work or too confusing to get help from or convert into what I want.
Because Windows Gadget uses Scripting + HTML so I have following options to carry on work with to make this gadget,
- Create a Visual studio project (dll) which will fetch the list for me using Object Model of Sharepoint and then I can use JavaScript & Visual Studio "COM" to read that dll ("Classes") and get data in JavaScript + displaying it on HTML. Problem with this approach is, I am not sure, If I create a "dll" with Sharepoint clients object model and put it into the gadget folder, will it work on Clients (that dont have sharepoint installed on there PCs). While trying to find help regarding this approach to problem I find this project that is doing kinda same thing, but not really sure if i make changes to it and it will gonna work with "dll" I was talking about earlier, here's the Link to Gadget,
Gmail Gadget Using JavaScript to Read Visual studio Dll
- Second Approach to solve the problem can be, If I use Sharepoint webservices, that will get me all the List Items, but then using Webservices in JavaScript isn't that easy, so if i create a Visual Studio Project, get a web reference to sharepoint webservices, and return a list, which I again use JavaScript to read the results out of DLL, and display them on HTML.
- Another solution is to use Jquery to get sharepoint List data, like in link before, but again, how can i authenticate my users @ gadget ?
Using jQuery to fetch List Data
My Favorite solution is to Use SOAP or REST along with webservices, I want to use SOAP to get Sharepoint List data and authenticate my users at the same time, I find hundreds of tutorials on this, but non of them actually doing authenticating or telling how this can work in a Gadget, using JavaScript/HTML,
There is few Gadget I found Online that are somehow related to what I need, they either dont work, or can't be changed to what I want.
Cheers for reading this I hope you either gonna increase your knowledge or gonna share it :)
