Created
November 15, 2012 16:03
-
-
Save nshaw/4079392 to your computer and use it in GitHub Desktop.
AUI ready example - two calls to Liferay.Service, second fails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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