Skip to content

Instantly share code, notes, and snippets.

@nshaw
Created November 15, 2012 16:03
Show Gist options
  • Select an option

  • Save nshaw/4079392 to your computer and use it in GitHub Desktop.

Select an option

Save nshaw/4079392 to your computer and use it in GitHub Desktop.
AUI ready example - two calls to Liferay.Service, second fails
var videoListItem;
var videoListItems;
AUI().ready('aui-io',
function() {
var params = {
groupId:"$groupId",
uuid:"$uuid.data"
}
Liferay.Service.SS.DMContent.getDMVideoList(params,
function (msg) {
videoListItem = msg;
alert('Response saved in variable videoListItem -' + videoListItem);
}
);
Liferay.Service.SS.DMContent.getDMVideoListItems(params,
function (msg) {
videoListItems = msg;
alert('Response saved in variable videoListItems -' + videoListItem);
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment