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

New Post: SPListNameFromUrl throws execption when used for a file stored in root folder

$
0
0
Hey,

it seems that the lastest alpha doesn't work in our case.

For me it looks like the reason behind are the following methods being called:
  1. genContainerId("SPAutocomplete", opt.columnName); (just handing over the columnName)
  2. listName: $().SPServices.SPListNameFromUrl() (determin listName from Url, which means trouble ahead, because there is no list)
  3. since no additional parameters are handed to SPListNameFromUrl it will always try to check "} else if(currentContext.thisList.length > 0) {" in which case currentContext.thisList will be null so accessing .length has to fail.
Maybe I missed some options which could be handed over, but as I see it now, even with webUrl: "/" it will fail every time the script is placed on a site located in the rootFolder of a web.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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