Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Spservices getlist items not working when called over web to html page

$
0
0
Hi,

I have an 2 pages that are using the same GetListItems and SPGetListItemsJson calls in a referenced .js. file.
One is a standard .aspx that has a master page and another is a standalone html page.

Both pages work as expected when accessed locally through the intranet but the html page fails to get any list data when accessed externally over the internet, while the aspx page works fine.

I think its somehow a a relative vs absolute issue for the following reasons:
  1. When I insert an alert to show SPGetCurrentSite(), the html file returns the full site address "http://portal/sites/mysite" whereas the aspx returns a relative address - "/sites/mysite"
  2. If I use an aspx page without a master page reference I have the same problem as the html - it works fine on the intranet and will make calls like SPGetCurrentSite, SPGetUser etc, but fails on all list calls.
  3. I have tried both setting the url and not in the GetListItems call and it makes no difference to the result
Anyone come across this issue or have any ideas how to solve it?

Viewing all articles
Browse latest Browse all 6517

Trending Articles