Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Sharepoint 2010 executeQueryAsync not working in Safari Brower. Always throws invalid equest.

$
0
0

Hi,

I have developed a piece of ECMA script in Sharepoint 2010.

when i run the page it seems working fine in all the browsers. but in  safari i'm getting "Invalid Request" when i call the

executeQueryAsync method. for Reference, I have included the code snippet for your reference.

clientInvoiceContext = SP.ClientContext.get_current();       
website = clientInvoiceContext.get_web();
var strquery = "<View><Query><Where><Eq><FieldRef Name='Invoice_Number' /><Value Type='Text'>" + invoicenumber + "</Value></Eq></Where></Query></View>";
invoicequery.set_viewXml(strquery);
var list = website.get_lists().getByTitle("Invoices");
clientInvoiceContext.load(list);
invoiceItems = list.getItems(invoicequery);
clientInvoiceContext.load(invoiceItems);
clientInvoiceContext.executeQueryAsync(Function.createDelegate(this, this.invoiceDetailsSucceeded), Function.createDelegate(this, this.invoiceDetailsFailed));

Thanks, Pal


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>