both
.find("[nodeName=z:row]" and .find("[z:\\row,row]"
give me syntax unrecognized on SharePoint 2007 IE 8 client
trying this code that redirects me to the dispform given a match on title list column from the url querystring ?Title=:
<script type="text/javascript" src="https://.../jquery.js"></script>
<script type="text/javascript" src="https://..//spservices.js"></script>
<script>
$(document).ready(function(){
var queryStringValues = $().SPServices.SPGetQueryString();
var t = queryStringValues["Title"];
var query = "<Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + t + "</Value></Eq></Where></Query>";
var url = window.location;
$().SPServices({
operation: "GetListItems",
listName: "ApprovalCustom",
async: false,
CAMLQuery: query,
completefunc: function (xData, Status) {
$(xData.responseXML).find("[nodeName=z:row]").each(function(){
id = $(this).attr("ows_ID");
url = $().SPServices.SPGetCurrentSite() + "/Lists/ApprovalCustom/DispForm.aspx?ID=" + id;
window.location = url;
});
}
});
});