Q: How do I query using SPServices lists on different Sharepoint Sites?

Mar 15, 2013 at 9:59 PM
Q: How do I query using SPServices lists on different Sharepoint Sites?
Coordinator
Mar 15, 2013 at 10:10 PM
You can specify the webURL. Check the docs.

M.
Mar 15, 2013 at 10:55 PM
Edited Mar 15, 2013 at 11:00 PM
Sorry I should clarify ... I see the webURL parameter.
But Can I query across a site collection to a different one?
Will the security prevent me from doing so?
Because I'm getting

OPTIONS http://mysite/_vti_bin/Lists.asmx 401 (Unauthorized) jquery.js:2
send jquery.js:2
p.extend.ajax jquery.js:2
Q.fn.SPServices jquery.SPServices-0.7.1a.min.js:19
GetListA DataTables_QueryDifSite.htm:28
(anonymous function) DataTables_QueryDifSite.htm:23
k jquery.js:2
l.fireWith jquery.js:2
p.extend.ready jquery.js:2
D

I see your other post. Looks likes it's
Access-Control-Allow-Origin Security Issue.

I'll followup with our Farm Administrator.

Thanks sympmarc!
Coordinator
Mar 16, 2013 at 5:01 AM
There's no simple answer to the question. It can work, but depends on many things, like your auth mechanisms and network topology. However, generally speaking cross-domain script requests won't fly.

M.