getSiteInfo
Encapsulates the API GetSiteInfo function. Accepts one parameter, a handler that gets passed the return object (containing the info).
jpal.getSiteInfo(handler)
handler is a function (with one parameter) that processes the returned info. The format of that info is documented here. See below for an example.
The following code calls getSiteInfo and uses it to return the wiki title:
function handleInfo(info) {
var title = info.title;
alert(title);
}
jpal.getSiteInfo(handleInfo);
Comments (0)
You don't have permission to comment on this page.