getByTitle('SharePoint List 2'); var camlQuery = new gosteroids.comery(); camlQuery. set_viewXml(query); items = gosteroids.comms(camlQuery);.
It looks like you're never actually triggering the retrieveListItems function. Try adding this at the top of you script, after the var siteUrl.
Normally this would be accomplished by using C# and creating a new Web Part to access the list. But with more and more Sharepoint sites.
JS file to retrieve data from a SharePoint list and display the items in a . each item and calls the GetLine function to get the HTML content for.