Comments on: Client Side AJAX Applications in SharePoint 2010 – Part 3: ASP.Net AJAX Templating 101 http://www.endusersharepoint.com/EUSP2010/2010/05/12/client-side-ajax-applications-in-sharepoint-2010-%e2%80%93-part-3-asp-net-ajax-templating-101/ Just another WordPress weblog Thu, 16 Dec 2010 21:48:20 -0500 http://wordpress.org/?v=2.9.2 hourly 1 By: Jake http://www.endusersharepoint.com/EUSP2010/2010/05/12/client-side-ajax-applications-in-sharepoint-2010-%e2%80%93-part-3-asp-net-ajax-templating-101/comment-page-1/#comment-301 Jake Fri, 24 Sep 2010 19:57:45 +0000 http://www.endusersharepoint.com/EUSP2010/?p=588#comment-301 Have the same questions as Ross. In addition does the Sys.require need to be Sys.require([ Sys.components.dataView, Sys.components.openDataServiceProxy, Sys.scripts.jQuery ]); instead of (see placement of second comma....I might be wrong though) Sys.require([ Sys.components.dataView, Sys.components.openDataServiceProxy Sys.scripts.jQuery, ]); ?? I am not sure and so asking. Have the same questions as Ross. In addition does the Sys.require need to be

Sys.require([
Sys.components.dataView,
Sys.components.openDataServiceProxy,
Sys.scripts.jQuery
]);

instead of (see placement of second comma….I might be wrong though)

Sys.require([
Sys.components.dataView,
Sys.components.openDataServiceProxy
Sys.scripts.jQuery,
]);

?? I am not sure and so asking.

]]>
By: Ross http://www.endusersharepoint.com/EUSP2010/2010/05/12/client-side-ajax-applications-in-sharepoint-2010-%e2%80%93-part-3-asp-net-ajax-templating-101/comment-page-1/#comment-251 Ross Wed, 11 Aug 2010 14:59:50 +0000 http://www.endusersharepoint.com/EUSP2010/?p=588#comment-251 Hello Lee, Several comments on your post: 1. Scripts/MicrosoftAjax/jQueryStart.js does not exist in the latest release you pointed in the post. Instead there is Scripts/MicrosoftAjax/Start.js 2. Sys.require is good, but if you reference classes like this, objects and their properties do not appear in intellisense dropdowns in visual studio, so coding is difficult 3. There some things not working in the code var dataSource = $.openDataServiceProxy( '/PreDemo/_vti_bin/ListData.svc' ); $.openDataServiceProxy - cannot find this function. What is meant by $.? $("#userStoriesList").dataView({ dataProvider: dataSource, fetchOperation: "UserStories", fetchParameters: { orderby: 'Title' }, autoFetch: "true" }); dataView is not a method of the userStoriesList. I managed to fix it using var dataSource = new Sys.Data.OpenDataServiceProxy('/PreDemo/_vti_bin/ListData.svc'); and $create(Sys.UI.DataView, { autoFetch: true, dataProvider: dataContext, fetchOperation: "UserStories" }, {}, {}, $get("AnnouncementsList") ); ..but am i missing some easy coding techniques? Will appreciate your help. Ross Hello Lee,

Several comments on your post:

1. Scripts/MicrosoftAjax/jQueryStart.js does not exist in the latest release you pointed in the post. Instead there is Scripts/MicrosoftAjax/Start.js

2. Sys.require is good, but if you reference classes like this, objects and their properties do not appear in intellisense dropdowns in visual studio, so coding is difficult

3. There some things not working in the code

var dataSource = $.openDataServiceProxy(
‘/PreDemo/_vti_bin/ListData.svc’
);
$.openDataServiceProxy – cannot find this function. What is meant by $.?

$(“#userStoriesList”).dataView({
dataProvider: dataSource,
fetchOperation: “UserStories”,
fetchParameters: { orderby: ‘Title’ },
autoFetch: “true”
});
dataView is not a method of the userStoriesList.

I managed to fix it using
var dataSource = new Sys.Data.OpenDataServiceProxy(‘/PreDemo/_vti_bin/ListData.svc’);

and

$create(Sys.UI.DataView,
{
autoFetch: true,
dataProvider: dataContext,
fetchOperation: “UserStories”
},
{},
{},
$get(“AnnouncementsList”)
);

..but am i missing some easy coding techniques?
Will appreciate your help.
Ross

]]>
By: Ramin Ahmadi http://www.endusersharepoint.com/EUSP2010/2010/05/12/client-side-ajax-applications-in-sharepoint-2010-%e2%80%93-part-3-asp-net-ajax-templating-101/comment-page-1/#comment-75 Ramin Ahmadi Tue, 18 May 2010 06:21:43 +0000 http://www.endusersharepoint.com/EUSP2010/?p=588#comment-75 veri nice article ! thanks lee veri nice article !
thanks lee

]]>