I’ve a custom SharePoint application page in which I’ve different user controls (or can even call as web parts) loaded.
Each control/web part pulls data from different data sources and renders the data. So when the page is requested all the controls get loaded sequentially with the data and taking more time to be delivered to the client.
What I need is iGoogle style of loading where the page gets delivered immediately and the different parts of the page (weather, sports news, stock details etc) load asynchronously (and in parallel) and pull the data.
We all know that Asp.Net Ajax cannot serve multiple asynchronous requests simultaneously. So I thought of the following options –
- User SharePoint Client Object Model to get data
- Using JQuery create ajax requests to the OOTB SharePoint services and get the data.
- Using JQuery create ajax requests a custom SharePoint web service and get the data you want
But here are the drawbacks of SP Client Object above –
- Client Object model works only with SP 2010
- Pulling data from another site is not possible
- Will work only within SharePoint pages
The idea of JQuery/SP Services is working only with IE. I’m not able to get it work with Firefox. I guess it should be an authentication issue. Also, cross-site scripting is not possible with JQuery/SP Services. I’m not aware of any other vulnerabilities/issues with this method.
Any insights on these?
A few options here.