I have a problem, Im using SPservices on a site, and it works perfectly fine.
But when I access the site in a mobile phone, it doesn't work, JQuery works, just SPservices don't.
Its a pretty standard use of SPservices I believe
function updateMat(){
var id = $("input[title='SolcDescItem']").val();
//alert(id);
var query = "<Query><Where><Eq><FieldRef Name='CatDescItem'/><Value Type='Text'>" + id + "</Value></Eq></Where></Query>"
var marca, desc, serie, fam, formato, costoMuestra, candidad, subtotal;
$().SPServices({
operation: "GetListItems",
async: false,
listName: "catItems",
CAMLQuery: query,
CAMLRowLimit: 1,
completefunc: function (xData, Status) {
var hasRows = false;
$(xData.responseXML).find("z\\:row, row").each(function () {
hasRows = true;
//valores
serie = $(this).attr("ows_CatSerie");
marca = $(this).attr("ows_CatMarca");
desc = $(this).attr("ows_CatItem");
fam = $(this).attr("ows_CatFam");
formato = $(this).attr("ows_CatFormato");
costoMuestra = $(this).attr("ows_CatCostoMuestra");
});
}
}); //spservices
var cost = parseFloat(costoMuestra);
cantidad = $("input[title='SolcCantidad']").val();
subtotal = parseFloat(cantidad*cost);
var multmult=Math.round(subtotal*100)/100;
$("input[title='SolcSerie']").val(serie);
$("input[title='SolcMarca']").val(marca);
$("input[title='SolcFam']").val(fam);
$("input[title='SolcFormato']").val(formato);
$("input[title='SolcCostoMuestra']").val(cost);
$("input[title='SolcItem']").val(desc);
$("input[title='SolcSubtotal']").val(multmult);
}
What it does is retrieve information in a list "catItems" and assign it to variables, then I assign those values to SharePoint form fields.
I have tried differents (but not all) versions of SPservices, although I don't think it's a version issue.
Any insight? Anybody else having this problem?
Thanks in advance