CreateContentType
Function
$().SPServices
Web Service
Webs
Operation
CreateContentType
Example
Thanks to fereko for providing this example. See UpdateColumns for the set up code.
var thisWeb;
$().SPServices({
operation: "WebUrlFromPageUrl",
pageURL: ((location.href.indexOf("?") > 0) ? location.href.substr(0, location.href.indexOf("?")) : location.href),
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
thisWeb = $(xData.responseXML).find("WebUrlFromPageUrlResult").text();
}
});