<script language="javascript" type="text/javascript" src="jquery-1.4.3.min.js"></script>
<script language="javascript" src="jquery.SPServices-0.7.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$().SPServices({
operation: "GetListItems",
async: false,
listName: "[LIST NAME]",
CAMLViewFields: "<ViewFields><FieldRef Name=\"Status\" /><FieldRef Name=\"COLUMN NAME\" /><FieldRef Name=\"COLUMN NAME\" /></ViewFields>",
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function () {
var status = $(this).attr("ows_COLUMN NAME");
var createdDate = $(this).attr("ows_COLUMN NAME");
});
}
});
});
</script>
|
<script src="/Style%20Library/Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="/Style%20Library/Scripts/jquery.SPServices-0.7.1a.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Test",
CAMLViewFields: "<ViewFields> <FieldRef Name='Title' /> </ViewFields>",
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function () {
alert($(this).attr("ows_Title"));
});
}
});
});
</script>
|