From: http://spservices.codeplex.com/discussions/348892
Add an option to allow passing in a URL to the function rather than simply picking up the current context. This will help where custom list forms are stored outside the list context.
Just to make sure I wasn't crazy, I tested $().SPServices.SPListNameFromUrl() from a Document library form, and it returns the correct GUID. So I think my function already works correctly. I'll add a new task for the next release to allow you to pass in the listName (or GUID) in as an option.
M.
Comments: vmrao: You're not using the function correctly. Check the docs.
Add an option to allow passing in a URL to the function rather than simply picking up the current context. This will help where custom list forms are stored outside the list context.
Just to make sure I wasn't crazy, I tested $().SPServices.SPListNameFromUrl() from a Document library form, and it returns the correct GUID. So I think my function already works correctly. I'll add a new task for the next release to allow you to pass in the listName (or GUID) in as an option.
M.
Comments: vmrao: You're not using the function correctly. Check the docs.