Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Possible to load different things in context for sharepoint client object model code?

$
0
0

In my javascript (ecma/client object model) for sharepoint 2010, I am first making a request to get the current user name, then when that succeeds I then make another request to download items from a list, then when that succeeds I make another request to download items from each of those item's attachment folder.

I want to possibly merge all three kinds of information into one request. Is it possible to do this?

I have this code clientContext.load(...); which I call to load a request basically, would it work if I call that function 3 times in a row that the information, and then on function success, am I going to be able to get all of those information?

Or do I have to format the 3 requests into a single string and call clientContext.load(...); only once?

Can anyone explain this? Thanks


Viewing all articles
Browse latest Browse all 11571

Trending Articles