[javascript]<br> var clientContext = new SP.ClientContext.get_current();<br> //change ‘Images’ .getByTitle(‘Images’) to the name of your list or use getByID instead<br> var oList = clientContext.get_web().get_lists().getByTitle(‘Images’);<br> var camlQuery = new SP.CamlQuery();<br> this.collListItem = oList.getItems(camlQuery);<br> clientContext.load(collListItem);<br> clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));<br> var oListItem;</p> <p>function onQuerySucceeded(sender, args) {<br> var listItemInfo = ”;<br> var listItemEnumerator = collListItem.getEnumerator();<br> var i = 0;<br> var string = "";a<br> while (listItemEnumerator.moveNext()) {<br> oListItem = listItemEnumerator.get_current();<br> var Id = oListItem.get_id();<br> //use .get_item(‘fieldname’) to retrieve specific column data<br> var Title = oListItem.get_item(‘Title’);<br> // add in your code here to use the details pulled out from the current item<br> // example shown below<br> string = string + "The title of item" + Id + " is " + Title<br> }<br> }</p> <p>function onQueryFailed(sender, args) {</p> <p> alert(‘Request failed. ‘ + args.get_message() + ‘\n’ + args.get_stackTrace());<br> }</p> <p>[/javascript]