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:
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:
-
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"
-
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.
-
I have tried both setting the url and not in the GetListItems call and it makes no difference to the result