Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <%@ Page Language="C#" %>
- <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <meta name="WebPartPageExpansion" content="full" />
- <meta http-equiv="X-UA-Compatible" content="IE=10" />
- <SharePoint:CssRegistration Name="default" runat="server"/>
- <script type="text/javascript" src="https://imago.sharepoint.com/sites/jonas.cruz/js/jquery-2.1.3.min.js"></script>
- <script type="text/javascript" src="https://imago.sharepoint.com/sites/jonas.cruz/js/jquery.SPServices-0.7.2.js"></script>
- <script>
- var htmlTable = '<table>';
- $().SPServices(
- {
- operation: "GetListItems",
- //async: false,
- listName: "Clientes",
- CAMLQuery: "<Query><Where><Eq><FieldRef Name='Sexo' /><Value Type='Choice'>Masculino</Value></Eq></Where></Query>",
- CAMLViewFields:"<ViewFields>" +
- "<FieldRef Name='ID' />" +
- "<FieldRef Name='Nomee' />" +
- "<FieldRef Name='Sexo' />" +
- "<FieldRef Name='Email' />" +
- "</ViewFields>",
- completefunc: function (xData, Status)
- {
- $(xData.responseXML).SPFilterNode('z:row').each(function()
- {
- var liHtml = "<li>" + $(this).attr("ows_Title") + " | " + $(this).attr("ows_CPF") + " | " + $(this).attr("ows_Sexo") + " | " + $(this).attr("ows_DataNasc") + " | " + $(this).attr("ows_Email") + "</li>";
- $("#tasksUL").append(liHtml);
- })
- }
- });
- </script>
- </head>
- <body>
- <ul id="tasksUL"/>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement