Relative links are relative to the current host. If your other service is
on a different subdomain, the host is different, so relative links won't
work.
On Monday, March 31, 2014 10:33:39 PM UTC-4, Steven Downs wrote:
>
> Here's how I am calling my site and list data. The page this code sits on
> is at /sites/dashboard/. I thought i would be able to call the list data
> from the other subsite by using webURL and a relative link. Didn't work
> though.
>
> jQuery().SPServices({
> operation: "GetListItems",
> listName: "Session Reporting",
> webURL: "/sites/Sessions/",
> CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef
> Name='Business' /><FieldRef Name='Region' /><FieldRef Name='Function'
> /><FieldRef Name='Participant_x0020_Count' /></ViewFields>",
> CAMLQuery: "<Query><Where><Neq><FieldRef Name='ID' /><Value
> Type='Counter'>0</Value></Neq></Where></Query>",
> completefunc: function (xData, Status) {
>
> On Monday, March 31, 2014 3:44:39 PM UTC-5, asgallant wrote:
>>
>> That depends on how you code your application. Likely it will involve
>> setting an appropriate URL for a query.
>>
>> On Monday, March 31, 2014 4:28:49 PM UTC-4, Steven Downs wrote:
>>>
>>> Thank you for the reply. How do I identity the subsite within the Google
>>> Chart code that I want to pull from?
>>>
>>> On Monday, March 31, 2014 3:26:36 PM UTC-5, asgallant wrote:
>>>>
>>>> There is nothing in the Visualization API that would stop you from
>>>> doing this. It is possible that your server settings could cause
>>>> problems,
>>>> but I've never encountered any issues querying across different subdomains
>>>> within a domain.
>>>>
>>>> On Monday, March 31, 2014 3:03:44 PM UTC-4, Steven Downs wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Can Google Charts read across subsites? I have a general dashboard
>>>>> page and the page needs to access data from different subsites under the
>>>>> same publishing site. Is this possible?
>>>>>
>>>>> Thanks
>>>>> Steve
>>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.